diff --git a/business/jxstore/cms/system_store_sku.go b/business/jxstore/cms/system_store_sku.go index f55f05f45..97dabda92 100644 --- a/business/jxstore/cms/system_store_sku.go +++ b/business/jxstore/cms/system_store_sku.go @@ -80,6 +80,10 @@ func CopyOnStoreSkuToOther(ctx *jxcontext.Context, fromVendorStoreId, toStoreId case 3: // 同步商品 fromFoodList, err1 := fromApi.RetailListAll(utils.Int2Str(fromVendorStoreId)) + 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)) }