美团力荐最终修改
This commit is contained in:
@@ -3369,7 +3369,7 @@ func UpdateStoreSkusSpecTagBin(ctx *jxcontext.Context, reader io.Reader, vendorI
|
||||
}
|
||||
for _, v := range results {
|
||||
store, err := dao.GetStoreDetail(db, v.StoreID, model.VendorIDMTWM)
|
||||
storeSkus, err := dao.GetStoresSkusInfo(db, []int{v.StoreID}, []int{v.SkuID})
|
||||
food, err := api.MtwmAPI.RetailGet(store.VendorStoreID, utils.Int2Str(v.SkuID))
|
||||
if err != nil || store == nil {
|
||||
continue
|
||||
}
|
||||
@@ -3378,7 +3378,7 @@ func UpdateStoreSkusSpecTagBin(ctx *jxcontext.Context, reader io.Reader, vendorI
|
||||
v.IsSpec = 0
|
||||
}
|
||||
foodData["is_specialty"] = v.IsSpec
|
||||
foodData["price"] = storeSkus[0].MtwmPrice / 100
|
||||
foodData["price"] = food.Price
|
||||
if globals.EnableMtwmStoreWrite {
|
||||
err = api.MtwmAPI.RetailInitData(ctx.GetTrackInfo(), store.VendorStoreID, utils.Int2Str(v.SkuID), foodData)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user