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