From 287ee4db37b0440b35e5dde2835fff8378457f95 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Fri, 22 Sep 2023 17:39:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/order/order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), } }