This commit is contained in:
邹宗楠
2022-04-02 09:45:13 +08:00
parent 60feebf242
commit 6a18e668cc

View File

@@ -106,10 +106,10 @@ func (c *DeliveryHandler) IsErrStoreNotExist(err error) bool {
func (c *DeliveryHandler) UpdateStore(ctx *jxcontext.Context, storeDetail *dao.StoreDetail2) (err error) { func (c *DeliveryHandler) UpdateStore(ctx *jxcontext.Context, storeDetail *dao.StoreDetail2) (err error) {
// 获取品牌名称 // 获取品牌名称
brandInfo, err := dao.GetBrands(dao.GetDB(), "", storeDetail.BrandID, "", false, "") //brandInfo, err := dao.GetBrands(dao.GetDB(), "", storeDetail.BrandID, "", false, "")
if err != nil { //if err != nil {
return err // return err
} //}
// 获取蜂鸟门店id // 获取蜂鸟门店id
fnStore, err := api.FnAPI.GetStore(storeDetail.VendorStoreID) fnStore, err := api.FnAPI.GetStore(storeDetail.VendorStoreID)
@@ -119,7 +119,7 @@ func (c *DeliveryHandler) UpdateStore(ctx *jxcontext.Context, storeDetail *dao.S
updateStore := &fnpsapi.UpdateStoreParam{ updateStore := &fnpsapi.UpdateStoreParam{
ChainStoreID: fnStore.ChainStoreID, ChainStoreID: fnStore.ChainStoreID,
HeadShopName: brandInfo[0].Name + "-" + storeDetail.Name, HeadShopName: storeDetail.Name,
ContactPhone: storeDetail.Tel1, ContactPhone: storeDetail.Tel1,
Address: storeDetail.Address, Address: storeDetail.Address,
Longitude: utils.Int2Float64(storeDetail.Lng) / 1000000, Longitude: utils.Int2Float64(storeDetail.Lng) / 1000000,