Browse Source

1.下单调整

master
huangjiajun 7 months ago
parent
commit
0b74d406d1
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/admin/svc/order/svc_order_pay.go

+ 2
- 0
app/admin/svc/order/svc_order_pay.go View File

@@ -50,6 +50,7 @@ func GoodsPayCreate(c *gin.Context) {
BuyInfo: utils.SerializeStr(req.BuyInfo), BuyInfo: utils.SerializeStr(req.BuyInfo),
BuyPhone: req.BuyInfo.Phone, BuyPhone: req.BuyInfo.Phone,
Amount: utils.Float64ToStr(amount), Amount: utils.Float64ToStr(amount),
State: 1,
} }
one, err := sess.InsertOne(&order) one, err := sess.InsertOne(&order)
if one == 0 || err != nil { if one == 0 || err != nil {
@@ -79,6 +80,7 @@ func GoodsPayCreate(c *gin.Context) {
Num: utils.StrToInt(v.Num), Num: utils.StrToInt(v.Num),
Price: skuPrice[v.SkuId], Price: skuPrice[v.SkuId],
EnterpriseId: utils.StrToInt(req.EnterpriseId), EnterpriseId: utils.StrToInt(req.EnterpriseId),
State: 1,
} }
goodsTotal[tmp.GoodsId] += tmp.Num goodsTotal[tmp.GoodsId] += tmp.Num
orderGoods = append(orderGoods, tmp) orderGoods = append(orderGoods, tmp)


Loading…
Cancel
Save