|
@@ -97,6 +97,10 @@ class Info
|
|
|
|
|
|
|
|
$where = 'type = '.$type.' and status = 1 and state = 1';
|
|
$where = 'type = '.$type.' and status = 1 and state = 1';
|
|
|
|
|
|
|
|
|
|
+ $county = Dever::db('area/county')->find($city);
|
|
|
|
|
+ if ($county) {
|
|
|
|
|
+ $city = $county['id'];
|
|
|
|
|
+ }
|
|
|
if ($type == 1 && $city) {
|
|
if ($type == 1 && $city) {
|
|
|
$where .= ' and city = ' . $city;
|
|
$where .= ' and city = ' . $city;
|
|
|
}
|
|
}
|