This commit is contained in:
邹宗楠
2023-09-22 13:06:07 +08:00
parent fe363e8035
commit 50406046ee

View File

@@ -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))
}