1
This commit is contained in:
@@ -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)))
|
count := utils.Float64TwoInt(math.Ceil(float64(len(foodDataList)) / float64(200)))
|
||||||
api := getAPI(storeDetail.VendorOrgCode, v, storeDetail.VendorStoreID)
|
api := getAPI(storeDetail.VendorOrgCode, v, storeDetail.VendorStoreID)
|
||||||
for i := 1; i <= count; i++ {
|
for i := 1; i <= count; i++ {
|
||||||
|
api.SetToken(storeDetail.MtwmToken)
|
||||||
if i == count {
|
if i == count {
|
||||||
result, err := api.RetailBatchInitData(ctx.GetTrackInfo(), storeDetail.VendorStoreID, foodDataList[(i-1)*200:])
|
result, err := api.RetailBatchInitData(ctx.GetTrackInfo(), storeDetail.VendorStoreID, foodDataList[(i-1)*200:])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user