From 5215390f66c19c1997a204320e23aed71606b97a Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 3 Apr 2024 18:34:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/svc/order/svc_order_pay.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/admin/svc/order/svc_order_pay.go b/app/admin/svc/order/svc_order_pay.go index 726bbb9..546e227 100644 --- a/app/admin/svc/order/svc_order_pay.go +++ b/app/admin/svc/order/svc_order_pay.go @@ -66,14 +66,15 @@ func GoodsPayCreate(c *gin.Context) { for _, v := range req.GoodsInfo { tmp := model.OrderGoods{ - Oid: order.Oid, - GoodsId: utils.StrToInt64(v.GoodsId), - GoodsTitle: goodsMap[utils.StrToInt64(v.GoodsId)].Title, - SkuId: utils.StrToInt64(v.SkuId), - SkuCode: skuMap[utils.StrToInt64(v.SkuId)].SkuCode, - Sku: skuMap[utils.StrToInt64(v.SkuId)].Sku, - Num: utils.StrToInt(v.Num), - Price: skuPrice[v.SkuId], + Oid: order.Oid, + GoodsId: utils.StrToInt64(v.GoodsId), + GoodsTitle: goodsMap[utils.StrToInt64(v.GoodsId)].Title, + SkuId: utils.StrToInt64(v.SkuId), + SkuCode: skuMap[utils.StrToInt64(v.SkuId)].SkuCode, + Sku: skuMap[utils.StrToInt64(v.SkuId)].Sku, + Num: utils.StrToInt(v.Num), + Price: skuPrice[v.SkuId], + EnterpriseId: utils.StrToInt(req.EnterpriseId), } goodsTotal[tmp.GoodsId] += tmp.Num orderGoods = append(orderGoods, tmp)