From 74aee3779cf14e016762c29b41be0e63b76fa73c Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 15 Jul 2023 15:43:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/CommonController.php | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 app/api/controller/CommonController.php 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