From 927ab3bc8b5e411533824a789f8471c6582afe5f Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Tue, 9 Jan 2024 14:56:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=8C=BA=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/controller/GeoController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/controller/GeoController.php b/app/common/controller/GeoController.php index f8909542..79929610 100644 --- a/app/common/controller/GeoController.php +++ b/app/common/controller/GeoController.php @@ -13,6 +13,7 @@ class GeoController extends BaseLikeAdminController { + public array $notNeedLogin=['province','city', 'county','towns','villages','groups']; // 获取省份 public function province(): Json { @@ -49,7 +50,7 @@ if(empty($county_code)){ return $this->fail('请选择区县'); } - $data = Town::field('town_code,town_name')->where('county_code',$county_code)->select(); + $data = Town::field('town_code,town_name,lng,lat')->where('county_code',$county_code)->select(); return $this->success('请求成功',$data->toArray()); }