fk
This commit is contained in:
@@ -256,8 +256,8 @@ func GenOrderNo(ctx *jxcontext.Context) (orderNo int64) {
|
|||||||
|
|
||||||
func GenRefundID(order *model.GoodsOrder) (refundID int64) {
|
func GenRefundID(order *model.GoodsOrder) (refundID int64) {
|
||||||
const suffix = 100000
|
const suffix = 100000
|
||||||
orderID := utils.Str2Int64(order.VendorOrderID) * suffix
|
refundID = utils.Str2Int64(order.VendorOrderID) * suffix
|
||||||
orderID += int64(time.Now().Sub(order.OrderFinishedAt) / time.Minute)
|
refundID += int64(time.Now().Sub(order.OrderFinishedAt) / time.Minute)
|
||||||
return refundID
|
return refundID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user