This commit is contained in:
苏尹岚
2021-01-20 13:47:56 +08:00
parent 729cce6695
commit 5859c589da

View File

@@ -1058,11 +1058,11 @@ func jxOrder2GoodsOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, deliveryAd
VendorOrderID2: jxOrder.OrderID2, VendorOrderID2: jxOrder.OrderID2,
} }
if len(couponIDs) > 0 { if len(couponIDs) > 0 {
strCounponIDs := []string{} // strCounponIDs := []string{}
for _, v := range couponIDs { // for _, v := range couponIDs {
strCounponIDs = append(strCounponIDs, utils.Int2Str(v)) // strCounponIDs = append(strCounponIDs, utils.Int2Str(v))
} // }
order.CouponIDs = strings.Join(strCounponIDs, ",") // order.CouponIDs = strings.Join(strCounponIDs, ",")
} }
if userID == "" { if userID == "" {
order.UserID = ctx.GetUserID() order.UserID = ctx.GetUserID()