From 0b74d406d1cfce6e59ea190bf172c8f9c53d064d Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 12 Apr 2024 10:26:17 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=B8=8B=E5=8D=95=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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/admin/svc/order/svc_order_pay.go b/app/admin/svc/order/svc_order_pay.go index 14a0bbc..f46adbe 100644 --- a/app/admin/svc/order/svc_order_pay.go +++ b/app/admin/svc/order/svc_order_pay.go @@ -50,6 +50,7 @@ func GoodsPayCreate(c *gin.Context) { BuyInfo: utils.SerializeStr(req.BuyInfo), BuyPhone: req.BuyInfo.Phone, Amount: utils.Float64ToStr(amount), + State: 1, } one, err := sess.InsertOne(&order) if one == 0 || err != nil { @@ -79,6 +80,7 @@ func GoodsPayCreate(c *gin.Context) { Num: utils.StrToInt(v.Num), Price: skuPrice[v.SkuId], EnterpriseId: utils.StrToInt(req.EnterpriseId), + State: 1, } goodsTotal[tmp.GoodsId] += tmp.Num orderGoods = append(orderGoods, tmp)