mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#4862 evdepismis needs [fast]
This commit is contained in:
parent
62d7e8ba6e
commit
e72ea054f2
@ -74,7 +74,10 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
||||
$query = $query->where('city', $city->id);
|
||||
} elseif (isset($param['city']) and !empty(array_filter($param['city']))) {
|
||||
$query = $query->whereIn('city', explode(',', array_first($param['city'])));
|
||||
}
|
||||
} elseif ($selectedCity = request()->cookie('selectedCity')) {
|
||||
$selectedCity = json_decode($selectedCity);
|
||||
$query = $query->where('city', $selectedCity->id);
|
||||
}
|
||||
if (isset($param['district']) and !empty(array_filter($param['district']))) {
|
||||
$query = $query->whereIn('district', explode(',', array_first($param['district'])));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user