This commit is contained in:
邹宗楠
2022-04-02 09:48:36 +08:00
parent 6a18e668cc
commit cd747d63dd

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,6 @@ func (c *DeliveryHandler) UpdateStore(ctx *jxcontext.Context, storeDetail *dao.S
updateStore := &fnpsapi.UpdateStoreParam{ updateStore := &fnpsapi.UpdateStoreParam{
ChainStoreID: fnStore.ChainStoreID, ChainStoreID: fnStore.ChainStoreID,
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,