fix:支付

This commit is contained in:
momo
2023-09-28 17:53:41 +08:00
parent 4032255694
commit 642ca772e8
10 changed files with 385 additions and 23 deletions

View File

@@ -140,14 +140,19 @@ func GenerateOrderStatusLink(deliveryMethod int64, noTime time.Time, expectedTim
orderStatus = constants.OrderStatusUserCLOUDSTORE
}
for _, v := range orderStatus {
list = append(list, gmodel.OrderStatus{
item := gmodel.OrderStatus{
StatusCode: v,
StatusTitle: constants.OrderStatusMessage[v],
})
}
if v == constants.ORDER_STATUS_UNPAIDDEPOSIT {
item.Ctime = &noTime
item.Utime = &noTime
}
if v == constants.ORDER_STATUS_DIRECTMAIL_ARRIVED || v == constants.ORDER_STATUS_CLOUDSTORE_ARRIVEDWAREHOUSE {
item.ExpectedTime = &expectedTime
}
list = append(list, item)
}
list[0].Ctime = &noTime
list[0].Utime = &noTime
list[len(list)-1].ExpectedTime = &expectedTime
return list
}