This commit is contained in:
richboo111
2023-07-31 17:46:05 +08:00
parent d4f93a1a23
commit a9d44d2de9
2 changed files with 61 additions and 60 deletions

View File

@@ -588,7 +588,6 @@ func (c *StoreController) SyncStoresCourierInfo() {
// @Title 根据位置得到推荐门店列表
// @Description 根据位置得到推荐门店列表
// @Param token header string false "认证token"
// @Param lng query float64 true "经度"
// @Param lat query float64 true "纬度"
// @Param needWalkDistance query bool false "是否需要返回步行距离(且以步行距离排序)"
@@ -600,7 +599,7 @@ 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)
if params.Token != "" {
result, _, err := cms.FilterByB2B(locationList, params.Token)
result, _, err := cms.FilterByB2B(locationList)
if err != nil {
return nil, "", err
} else {
@@ -622,7 +621,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.Token)
details, _, err := cms.GetHomePageByLocation(params.Ctx, params.Lng, params.Lat, params.NeedWalkDistance)
if err != nil {
return nil, "根据经纬度获取门店详细信息失败", err
}