fix:支付

This commit is contained in:
momo 2023-09-22 17:39:20 +08:00
parent 0a4368ba7f
commit 287ee4db37

View File

@ -116,8 +116,8 @@ 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),
Initiate: strconv.FormatInt(int64(req.Initiate.(float64)), 10),
Current: strconv.FormatInt(int64(req.Current.(float64)), 10),
}
}