fix:支付
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user