添加京东活动商品时,同时传入infoId与outInfoId参数(京东的bug)
This commit is contained in:
@@ -198,7 +198,7 @@ func createSkuAct(ctx *jxcontext.Context, act *model.Act2, actStoreSku []*model.
|
|||||||
if err = err2; err == nil {
|
if err = err2; err == nil {
|
||||||
vendorActID = utils.Int64ToStr(infoID)
|
vendorActID = utils.Int64ToStr(infoID)
|
||||||
if err = CreatePromotionRules(act.Type, infoID, "", act.LimitUser, act.LimitUser, act.LimitCount, 1, traceInfo); err == nil {
|
if err = CreatePromotionRules(act.Type, infoID, "", act.LimitUser, act.LimitUser, act.LimitCount, 1, traceInfo); err == nil {
|
||||||
if _, err = CreatePromotionSku(act.Type, infoID, "", storeSku2Jd(actStoreSku, model.IsSyncStatusNeedCreate), traceInfo); err == nil {
|
if _, err = CreatePromotionSku(act.Type, infoID, utils.Int2Str(act.ID), storeSku2Jd(actStoreSku, model.IsSyncStatusNeedCreate), traceInfo); err == nil {
|
||||||
if err = ConfirmPromotion(act.Type, infoID, "", traceInfo); err == nil {
|
if err = ConfirmPromotion(act.Type, infoID, "", traceInfo); err == nil {
|
||||||
for _, v := range actStoreSku {
|
for _, v := range actStoreSku {
|
||||||
v.VendorActID = vendorActID
|
v.VendorActID = vendorActID
|
||||||
|
|||||||
Reference in New Issue
Block a user