From d6634b584464435f6a15875613377cf002dbdfc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 18 Nov 2020 15:22:39 +0800 Subject: [PATCH] jds2 cat --- business/partner/purchase/jdshop/store_sku.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/partner/purchase/jdshop/store_sku.go b/business/partner/purchase/jdshop/store_sku.go index 1b41eb75e..e8013ecc0 100644 --- a/business/partner/purchase/jdshop/store_sku.go +++ b/business/partner/purchase/jdshop/store_sku.go @@ -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 }