chuangjian
This commit is contained in:
@@ -646,9 +646,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
|||||||
updateList = updateList[:]
|
updateList = updateList[:]
|
||||||
updateList = rList2
|
updateList = rList2
|
||||||
}
|
}
|
||||||
if configs, err := dao.QueryConfigs(dao.GetDB(), "jdsCookie2", model.ConfigTypeCookie, ""); err == nil {
|
// if configs, err := dao.QueryConfigs(dao.GetDB(), "jdsCookie2", model.ConfigTypeCookie, ""); err == nil {
|
||||||
api.JdShop2API.SetCookieWithStr(configs[0].Value)
|
// api.JdShop2API.SetCookieWithStr(configs[0].Value)
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
task := tasksch.NewParallelTask("syncStoreSkuNew", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(isContinueWhenError2), ctx,
|
task := tasksch.NewParallelTask("syncStoreSkuNew", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(isContinueWhenError2), ctx,
|
||||||
|
|||||||
@@ -340,10 +340,9 @@ func Init() {
|
|||||||
jdsCookie = configs[0].Value
|
jdsCookie = configs[0].Value
|
||||||
api.JdShopAPI.SetCookieWithStr(jdsCookie)
|
api.JdShopAPI.SetCookieWithStr(jdsCookie)
|
||||||
}
|
}
|
||||||
// if configs, err := dao.QueryConfigs(dao.GetDB(), "jdsCookie2", model.ConfigTypeCookie, ""); err == nil {
|
if configs, err := dao.QueryConfigs(dao.GetDB(), "jdsCookie2", model.ConfigTypeCookie, ""); err == nil {
|
||||||
// jdsCookie2 = configs[0].Value
|
api.JdShop2API.SetCookieWithStr(configs[0].Value)
|
||||||
// api.JdShop2API.SetCookieWithStr(jdsCookie2)
|
}
|
||||||
// }
|
|
||||||
if configs, err := dao.QueryConfigs(dao.GetDB(), "yinbaoCookie", model.ConfigTypeCookie, ""); err == nil {
|
if configs, err := dao.QueryConfigs(dao.GetDB(), "yinbaoCookie", model.ConfigTypeCookie, ""); err == nil {
|
||||||
yinbaoCookie := configs[0].Value
|
yinbaoCookie := configs[0].Value
|
||||||
api.YinBaoAPI.SetCookie(".POSPALAUTH30220", yinbaoCookie)
|
api.YinBaoAPI.SetCookie(".POSPALAUTH30220", yinbaoCookie)
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ func (p *PurchaseHandler) CreateStoreSkus(ctx *jxcontext.Context, storeID int, v
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
createSkuResult, err2 := getAPI(v.VendorOrgCode).WareSave(wareSaveParam)
|
createSkuResult, err2 := api.JdShop2API.WareSave(wareSaveParam)
|
||||||
err = err2
|
err = err2
|
||||||
wareID = createSkuResult[0].WareID
|
wareID = createSkuResult[0].WareID
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user