1
This commit is contained in:
@@ -598,15 +598,15 @@ func (c *StoreController) SyncStoresCourierInfo() {
|
|||||||
func (c *StoreController) GetStoreListByLocation() {
|
func (c *StoreController) GetStoreListByLocation() {
|
||||||
c.callGetStoreListByLocation(func(params *tStoreGetStoreListByLocationParams) (retVal interface{}, errCode string, err error) {
|
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, params.BrandID)
|
||||||
if params.Token != "" {
|
//if params.Token != "" {
|
||||||
result, _, err := cms.FilterByB2B(locationList)
|
result, _, err := cms.FilterByB2B(locationList)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, "", err
|
return nil, "", err
|
||||||
} else {
|
} else {
|
||||||
return result, "", err
|
return result, "", err
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
return locationList, "", err
|
//return locationList, "", err
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user