diff --git a/app/api/controller/CommonController.php b/app/api/controller/CommonController.php new file mode 100644 index 000000000..5c59c87c2 --- /dev/null +++ b/app/api/controller/CommonController.php @@ -0,0 +1,27 @@ +where(['city_id'=>259])->select(); + return $this->data($data->toArray()); + } + //**区域列表 */ + public function area(){ + $data = Db::name('geo_area')->where(['city_code'=>510500])->select(); + return $this->data($data->toArray()); + } + //**街道列表 */ + public function street(){ + $data = Db::name('geo_street')->where(['area_code'=>510502])->select(); + return $this->data($data->toArray()); + } + +} \ No newline at end of file