This commit is contained in:
邹宗楠
2024-04-03 17:30:35 +08:00
parent 8c708b0eb6
commit 81a15c6f0e

View File

@@ -937,6 +937,7 @@ func UpdateBoxPrice(ctx *jxcontext.Context, db *dao.DaoDB, list []int) error {
count := utils.Float64TwoInt(math.Ceil(float64(len(foodDataList)) / float64(200)))
api := getAPI(storeDetail.VendorOrgCode, v, storeDetail.VendorStoreID)
for i := 1; i <= count; i++ {
api.SetToken(storeDetail.MtwmToken)
if i == count {
result, err := api.RetailBatchInitData(ctx.GetTrackInfo(), storeDetail.VendorStoreID, foodDataList[(i-1)*200:])
if err != nil {