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)