1
This commit is contained in:
@@ -940,7 +940,7 @@ func UpdateBoxPrice(ctx *jxcontext.Context, db *dao.DaoDB, list []int) error {
|
|||||||
for i := 1; i <= count; i++ {
|
for i := 1; i <= count; i++ {
|
||||||
api.SetToken(storeDetail.MtwmToken)
|
api.SetToken(storeDetail.MtwmToken)
|
||||||
if i == count {
|
if i == count {
|
||||||
result, err := api.RetailBatchInitData(ctx.GetTrackInfo(), storeDetail.VendorStoreID, foodDataList[(i-1)*100:])
|
result, err := api.RetailBatchInitData2(ctx.GetTrackInfo(), storeDetail.VendorStoreID, foodDataList[(i-1)*100:])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
globals.SugarLogger.Debugf("RetailBatchInitData1 err := %v", err)
|
globals.SugarLogger.Debugf("RetailBatchInitData1 err := %v", err)
|
||||||
}
|
}
|
||||||
@@ -948,7 +948,7 @@ func UpdateBoxPrice(ctx *jxcontext.Context, db *dao.DaoDB, list []int) error {
|
|||||||
globals.SugarLogger.Debugf("RetailBatchInitData1 result := %s", utils.Format4Output(result, false))
|
globals.SugarLogger.Debugf("RetailBatchInitData1 result := %s", utils.Format4Output(result, false))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
result, err := api.RetailBatchInitData(ctx.GetTrackInfo(), storeDetail.VendorStoreID, foodDataList[(i-1)*100:i*100])
|
result, err := api.RetailBatchInitData2(ctx.GetTrackInfo(), storeDetail.VendorStoreID, foodDataList[(i-1)*100:i*100])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
globals.SugarLogger.Debugf("RetailBatchInitData2 err := %v", err)
|
globals.SugarLogger.Debugf("RetailBatchInitData2 err := %v", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user