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