rabin 3 years ago
parent
commit
c36db59b75
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Api.php

+ 3 - 3
src/Api.php

@@ -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';
         }