修改美团力荐功能
This commit is contained in:
@@ -3342,6 +3342,7 @@ func UpdateStoreSkusSpecTagBin(ctx *jxcontext.Context, reader io.Reader, vendorI
|
|||||||
}
|
}
|
||||||
for _, v := range storeSkuInfos {
|
for _, v := range storeSkuInfos {
|
||||||
store, err := dao.GetStoreDetail(db, storeID, model.VendorIDMTWM)
|
store, err := dao.GetStoreDetail(db, storeID, model.VendorIDMTWM)
|
||||||
|
storeSkus, err := dao.GetStoresSkusInfo(db, []int{storeID}, []int{v.SkuID})
|
||||||
if err != nil || store == nil {
|
if err != nil || store == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@@ -3350,6 +3351,7 @@ func UpdateStoreSkusSpecTagBin(ctx *jxcontext.Context, reader io.Reader, vendorI
|
|||||||
v.IsSpecialty = 0
|
v.IsSpecialty = 0
|
||||||
}
|
}
|
||||||
foodData["is_specialty"] = v.IsSpecialty
|
foodData["is_specialty"] = v.IsSpecialty
|
||||||
|
foodData["price"] = storeSkus[0].MtwmPrice
|
||||||
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