1
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user