This commit is contained in:
richboo111
2023-07-31 17:48:14 +08:00
parent a9d44d2de9
commit 84bb016109

View File

@@ -598,15 +598,15 @@ func (c *StoreController) SyncStoresCourierInfo() {
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)
if err != nil {
return nil, "", err
} else {
return result, "", err
}
//if params.Token != "" {
result, _, err := cms.FilterByB2B(locationList)
if err != nil {
return nil, "", err
} else {
return result, "", err
}
return locationList, "", err
//}
//return locationList, "", err
})
}