This commit is contained in:
邹宗楠
2023-05-29 10:04:27 +08:00
parent bff2be81e8
commit 2a4de66bd4
7 changed files with 11 additions and 73 deletions

View File

@@ -169,7 +169,6 @@ func (c *DeliveryHandler) IsErrStoreExist(err error) bool {
func (c *DeliveryHandler) UpdateStore(ctx *jxcontext.Context, storeDetail *dao.StoreDetail2) (err error) {
if globals.EnableStoreWrite {
// err = api.MtpsAPI.PagePoiUpdate(storeDetail.VendorStoreID, storeDetail.PayeeName, storeDetail.Tel1, fakeContactEmail)
shopInfo := &mtpsapi.ShopInfo{
ShopID: utils.Int2Str(storeDetail.ID),
ContactName: storeDetail.PayeeName,
@@ -177,18 +176,9 @@ func (c *DeliveryHandler) UpdateStore(ctx *jxcontext.Context, storeDetail *dao.S
ShopAddress: storeDetail.Address,
ShopLat: storeDetail.Lat,
ShopLng: storeDetail.Lng,
ShopName: storeDetail.Name,
}
_, err = api.MtpsAPI.ShopUpdate(shopInfo)
}
return err
}
// 美团配送,修改门店名称
func (c *DeliveryHandler) UpdateStoreName(storeId, name string) (err error) {
shopInfo := &mtpsapi.ShopInfo{
ShopID: storeId,
ShopName: name,
}
_, err = api.MtpsAPI.ShopUpdate(shopInfo)
return err
}