From 3b34e85e7087b73b0b4ce98eba76b42334de57f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 22 Feb 2024 11:28:52 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/system_store_sku.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) {