This commit is contained in:
邹宗楠
2023-10-25 16:49:46 +08:00
parent e59caf3f67
commit 4b165519ed

View File

@@ -241,17 +241,21 @@ func BatchInitData(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi *mt
failedFoodList, err2 := toApi.RetailBatchInitData(ctx.GetTrackInfo(), vendorStoreID, foodDataList[i*10:])
if err2 != nil {
globals.SugarLogger.Debugf("RetailBatchInitData err3 :%v", err2)
globals.SugarLogger.Debugf("RetailBatchInitData1 failedFoodList :%s", utils.Format4Output(failedFoodList, false))
}
if len(failedFoodList) != 0 {
globals.SugarLogger.Debugf("RetailBatchInitData err4 :%s", utils.Format4Output(failedFoodList, false))
globals.SugarLogger.Debugf("RetailBatchInitData2 failedFoodList :%s", utils.Format4Output(failedFoodList, false))
}
} else {
failedFoodList, err2 := toApi.RetailBatchInitData(ctx.GetTrackInfo(), vendorStoreID, foodDataList[i*10:(i+1)*10])
if err2 != nil {
globals.SugarLogger.Debugf("RetailBatchInitData err3 :%v", err2)
globals.SugarLogger.Debugf("RetailBatchInitData3 failedFoodList :%s", utils.Format4Output(failedFoodList, false))
}
if len(failedFoodList) != 0 {
globals.SugarLogger.Debugf("RetailBatchInitData err4 :%s", utils.Format4Output(failedFoodList, false))
globals.SugarLogger.Debugf("RetailBatchInitData4 failedFoodList :%s", utils.Format4Output(failedFoodList, false))
}
}