京东商城修改门店

This commit is contained in:
苏尹岚
2020-05-15 17:44:17 +08:00
parent a5a10fa53c
commit 2eb64fa152
2 changed files with 5 additions and 1 deletions

View File

@@ -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[:]

View File

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