fix:支付

This commit is contained in:
momo
2023-09-22 17:32:23 +08:00
parent b398da58e1
commit 656d5038fe
3 changed files with 20 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import (
"fusenapi/constants"
"fusenapi/model/gmodel"
"fusenapi/utils/format"
"strconv"
"time"
)
@@ -112,6 +113,14 @@ func GetAmountInfoFormat(req *gmodel.AmountInfo) gmodel.AmountInfo {
}
}
// 处理商品数量
func GetPurchaseQuantity(req *gmodel.PurchaseQuantity) gmodel.PurchaseQuantity {
return gmodel.PurchaseQuantity{
Initiate: strconv.FormatInt(req.Initiate.(int64), 10),
Current: strconv.FormatInt(req.Current.(int64), 10),
}
}
// 生成订单编号
func GenerateOrderNumber() string {
t := time.Now()