美团力荐修改
This commit is contained in:
@@ -3340,16 +3340,21 @@ func UpdateStoreSkusSpecTagBin(ctx *jxcontext.Context, reader io.Reader, vendorI
|
||||
storeSkuInfos[i] = storeSkuInfos[len(storeSkuInfos)-i-1]
|
||||
storeSkuInfos[len(storeSkuInfos)-i-1] = tmp
|
||||
}
|
||||
for _, v := range vendorIDs {
|
||||
store, err := dao.GetStoreDetail(db, storeID, v)
|
||||
for _, v := range storeSkuInfos {
|
||||
store, err := dao.GetStoreDetail(db, storeID, model.VendorIDMTWM)
|
||||
if err != nil || store == nil {
|
||||
continue
|
||||
}
|
||||
for _, vv := range apimanager.CurAPIManager.GetAppOrgCodeList(v) {
|
||||
handler := partner.GetPurchasePlatformFromVendorID(v).(partner.IPurchasePlatformStoreSkuHandler)
|
||||
err = handler.UpdateStoreSkusSpecTag(ctx, vv, storeID, store.VendorStoreID, storeSkuMap[storeID])
|
||||
var foodData = make(map[string]interface{})
|
||||
if v.IsSpecialty != 0 && v.IsSpecialty == -1 {
|
||||
v.IsSpecialty = 0
|
||||
}
|
||||
foodData["is_specialty"] = v.IsSpecialty
|
||||
if globals.EnableMtwmStoreWrite {
|
||||
err = api.MtwmAPI.RetailInitData(ctx.GetTrackInfo(), store.VendorStoreID, utils.Int2Str(v.SkuID), foodData)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
return result, err
|
||||
|
||||
Reference in New Issue
Block a user