jds2 cat
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user