From 27db56c4eb453345958ac807147a02f52febcabb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 10 Oct 2024 14:55:31 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store.go | 2 +- controllers/cms_store.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index f4bc96f71..d19dd2a08 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -6002,7 +6002,7 @@ func FilterByB2B(locationList []*common.Store4User) (retVal []*common.Store4User } //首页信息展示 -func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDistance bool, brandId int) (interface{}, string, error) { +func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDistance bool, brandId []int) (interface{}, string, error) { //获取门店信息 var ( storeID []int diff --git a/controllers/cms_store.go b/controllers/cms_store.go index c20f4f29f..8b14a049c 100644 --- a/controllers/cms_store.go +++ b/controllers/cms_store.go @@ -626,7 +626,7 @@ func (c *StoreController) SyncStoresCourierInfo() { // @router /GetStoreListByLocation [get] func (c *StoreController) GetStoreListByLocation() { c.callGetStoreListByLocation(func(params *tStoreGetStoreListByLocationParams) (retVal interface{}, errCode string, err error) { - locationList, err := common.GetStoreListByLocation(params.Ctx, params.Lng, params.Lat, 20000, params.NeedWalkDistance, false, params.BrandID) + locationList, err := common.GetStoreListByLocation(params.Ctx, params.Lng, params.Lat, 20000, params.NeedWalkDistance, false, []int{params.BrandID}) //if params.Token != "" { result, _, err := cms.FilterByB2B(locationList) if err != nil { @@ -650,7 +650,7 @@ func (c *StoreController) GetStoreListByLocation() { // @router /GetHomePageByLocation [get] func (c *StoreController) GetHomePageByLocation() { c.callGetHomePageByLocation(func(params *tStoreGetHomePageByLocationParams) (interface{}, string, error) { - details, _, err := cms.GetHomePageByLocation(params.Ctx, params.Lng, params.Lat, params.NeedWalkDistance, params.BrandID) + details, _, err := cms.GetHomePageByLocation(params.Ctx, params.Lng, params.Lat, params.NeedWalkDistance, []int{params.BrandID}) if err != nil { return nil, "根据经纬度获取门店详细信息失败", err }