This commit is contained in:
苏尹岚
2020-11-18 15:22:39 +08:00
parent 67a9c517f2
commit d6634b5844

View File

@@ -435,7 +435,7 @@ func vendorSku2Jx(result *jdshopapi.SearchSkuListResult) (skuName *partner.SkuNa
func updateOrCreateCategories(storeCat *dao.SkuStoreCatInfo, isCreate bool) (status int64, err error) {
var createShopCategoryParams []*jdshopapi.CreateShopCategoryParam
result, err := api.JdShopAPI.FindShopCategories()
result, err := getAPI(storeCat.VendorOrgCode).FindShopCategories()
if err != nil {
return -1, err
}
@@ -470,7 +470,7 @@ func updateOrCreateCategories(storeCat *dao.SkuStoreCatInfo, isCreate bool) (sta
}
}
}
status, err = api.JdShopAPI.CreateShopCategory(createShopCategoryParams)
status, err = getAPI(storeCat.VendorOrgCode).CreateShopCategory(createShopCategoryParams)
return status, err
}