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