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