|
@@ -191,15 +191,15 @@ class Api
|
|
|
$num = count($temp);
|
|
|
if ($num == 4 && isset($temp[3]) && $temp[3] > 0) {
|
|
|
|
|
|
- $where['where_id'] = $temp[3];
|
|
|
+ $where['id'] = $temp[3];
|
|
|
$table = 'area/town';
|
|
|
} elseif ($num == 3 && isset($temp[2]) && $temp[2] > 0) {
|
|
|
|
|
|
- $where['where_id'] = $temp[2];
|
|
|
+ $where['id'] = $temp[2];
|
|
|
$table = 'area/county';
|
|
|
} elseif ($num == 2 && isset($temp[1]) && $temp[1] > 0) {
|
|
|
|
|
|
- $where['where_id'] = $temp[1];
|
|
|
+ $where['id'] = $temp[1];
|
|
|
$table = 'area/city';
|
|
|
}
|
|
|
|