aa
This commit is contained in:
@@ -72,7 +72,7 @@ func SyncStoreCategories(ctx *jxcontext.Context, parentTask tasksch.ITask, vendo
|
||||
num := 0
|
||||
db := dao.GetDB()
|
||||
if configs, err := dao.QueryConfigs(dao.GetDB(), "jdsCookie2", model.ConfigTypeCookie, ""); err == nil {
|
||||
api.JdShop2API.SetCookieWithStr(configs[0].Value)
|
||||
api.JdShopAPI.SetCookieWithStr(configs[0].Value)
|
||||
}
|
||||
rootTask := tasksch.NewSeqTask(fmt.Sprintf("%s SyncStoreCategory step1", model.VendorChineseNames[vendorID]), ctx,
|
||||
func(rootTask *tasksch.SeqTask, step int, params ...interface{}) (result interface{}, err error) {
|
||||
@@ -935,7 +935,7 @@ func amendAndPruneStoreStuff(ctx *jxcontext.Context, parentTask tasksch.ITask, v
|
||||
for _, v := range localSkuList {
|
||||
vendorSkuID := v.VendorSkuID
|
||||
if vendorID == model.VendorIDJDShop {
|
||||
if storeSkus, _ := dao.GetStoresSkusInfo(db, []int{model.JdShopMainStoreID2}, []int{v.SkuID}); len(storeSkus) > 0 {
|
||||
if storeSkus, _ := dao.GetStoresSkusInfo(db, []int{model.JdShopMainStoreID}, []int{v.SkuID}); len(storeSkus) > 0 {
|
||||
vendorSkuID = utils.Int64ToStr(storeSkus[0].JdsID)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user