diff --git a/business/jxstore/cms/system_store_sku.go b/business/jxstore/cms/system_store_sku.go index c53a49d3d..eb6a9fe4a 100644 --- a/business/jxstore/cms/system_store_sku.go +++ b/business/jxstore/cms/system_store_sku.go @@ -177,14 +177,13 @@ func CopyMtToMT(ctx *jxcontext.Context, fromStore, toStore *dao.StoreDetail, isA step := batchItemList[0].(int) switch step { case 1: - // 同步分类 fromCategoryList, err := fromApi.RetailCatList(fromStore.VendorStoreID) if len(fromCategoryList) == model.NO { return nil, err } toCategoryList, err := toApi.RetailCatList(toStore.VendorStoreID) - if len(toCategoryList) == model.NO { + if err != nil { return nil, err } if len(fromCategoryList) != len(toCategoryList) {