|
|
@@ -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) |
|
|
|