diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index 2ccf2ea58..f1bcbd8bc 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -590,6 +590,10 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag } //如果平台是京东商城,则按商品skuname创建 if vendorID == model.VendorIDJDShop { + if configs, err := dao.QueryConfigs(dao.GetDB(), "jdsCookie", model.ConfigTypeCookie, ""); err == nil { + jdsCookie := configs[0].Value + api.JdShopAPI.SetCookie("thor", jdsCookie) + } if len(createList) > 0 { rList := changeList2Jds(createList) createList = createList[:] diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 608b4521f..ceae9fb38 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -315,7 +315,7 @@ func Init() { api.JdPageAPI.SetCookie(jdapi.AccessStorePageCookieName, JdStorePageCookie) api.JdPageAPI.SetCookie(jdapi.AccessStorePageCookieName2, JdStorePageCookie) api.FeieAPI.SetCookieWithStr(feiePageCookie) - api.JdShopAPI.SetCookieWithStr(jdsCookie) + api.JdShopAPI.SetCookie("thor", jdsCookie) } func syncStoreSku() {