This commit is contained in:
richboo111
2023-07-14 09:44:17 +08:00
parent ba64bc8f4b
commit a6675a4ec0
2 changed files with 39 additions and 41 deletions

View File

@@ -6349,7 +6349,6 @@ func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo) (error,
for _, v := range bind {
if len(v.VendorStoreID) == 0 || len(v.VendorStoreName) == 0 {
errIDName = append(errIDName, v.VendorStoreID)
//errList.AddErr(fmt.Errorf("门店%s Id/名字不合法", v.VendorStoreID))
} else {
if strings.Contains(v.VendorStoreID, "X") {
temp := strings.Split(v.VendorStoreID, "X")
@@ -6370,6 +6369,13 @@ func SingleBindTaoVegetable(ctx *jxcontext.Context, bind []TaoBindInfo) (error,
MtwmRefreshToken: "",
VendorStoreID: v.VendorStoreID,
}
//跟美团同步 平台调价、调价套餐
if localStore, err := dao.GetStoreDetail(dao.GetDB(), utils.Str2Int(storeID), model.VendorIDMTWM, ""); err == nil {
if localStore.PricePercentage != 0 {
storeMap.PricePercentage = localStore.PricePercentage
}
//else if localStore.priceper
}
storeMaps = append(storeMaps, storeMap)
}
userName := ctx.GetUserName()