diff --git a/utils/order/order.go b/utils/order/order.go index 583e41d4..5337531b 100644 --- a/utils/order/order.go +++ b/utils/order/order.go @@ -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), } }