From 167020fca499a837dd85820d69a34884f801d7e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 22 Sep 2023 15:26:42 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/system_store_sku.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/business/jxstore/cms/system_store_sku.go b/business/jxstore/cms/system_store_sku.go index d0f00c116..05fc4af28 100644 --- a/business/jxstore/cms/system_store_sku.go +++ b/business/jxstore/cms/system_store_sku.go @@ -82,12 +82,9 @@ func CopyOnStoreSkuToOther(ctx *jxcontext.Context, fromVendorStoreId, toStoreId // 同步商品 fromFoodList, err1 := fromApi.RetailListAll(utils.Int2Str(fromVendorStoreId), i) if len(fromFoodList) == 0 || fromFoodList == nil { - return nil, fmt.Errorf("fromFoodList 为空") - } - globals.SugarLogger.Debugf("RetailListAll : %s", utils.Format4Output(len(fromFoodList), false)) - if err1 != nil { - globals.SugarLogger.Debugf("RetailListAll : %s", utils.Format4Output(err, false)) + return nil, fmt.Errorf("fromFoodList 为空 %s ,i:= %d", utils.Format4Output(err1, false), i) } + if err := BatchInitData(ctx, fromFoodList, toApi, toStore.VendorStoreID); err != nil { globals.SugarLogger.Debugf("BatchInitData : %s", utils.Format4Output(err, false)) }