From 0810c328d02f25a1e139023815726a346264ce90 Mon Sep 17 00:00:00 2001 From: xiaoyu Date: Wed, 12 Mar 2025 16:54:54 +0800 Subject: [PATCH] p --- admin/core/HD_Controller.php | 1 + admin/views/receiver/clues/get_adviser.php | 2 +- api/controllers/wxapp/app/City.php | 2 +- common/models/Area_model.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/admin/core/HD_Controller.php b/admin/core/HD_Controller.php index 70539735..191eaf74 100644 --- a/admin/core/HD_Controller.php +++ b/admin/core/HD_Controller.php @@ -19,6 +19,7 @@ abstract class HD_Controller extends CI_Controller '350000' => ['id' => '350000', 'name' => '福建省'], '430000' => ['id' => '430000', 'name' => '湖南省'], '520000' => ['id' => '520000', 'name' => '贵州省'], + '460000' => ['id' => '460000', 'name' => '海南省'], ); public function __construct() diff --git a/admin/views/receiver/clues/get_adviser.php b/admin/views/receiver/clues/get_adviser.php index b37c479d..09de76fc 100644 --- a/admin/views/receiver/clues/get_adviser.php +++ b/admin/views/receiver/clues/get_adviser.php @@ -54,7 +54,7 @@ province_id: , city_id: , county_id: , - provinceAry: [{"id": "350000", "name": "福建省"},{"id": "520000", "name": "贵州省"}, {"id": "430000", "name": "湖南省"}], + provinceAry: [{"id": "350000", "name": "福建省"}, {"id": "430000", "name": "湖南省"},{"id": "520000", "name": "贵州省"},{"id": "460000", "name": "海南省"}], cityAry: [], countyAry: [], bizList: [], diff --git a/api/controllers/wxapp/app/City.php b/api/controllers/wxapp/app/City.php index 7f4dd888..a76534a6 100644 --- a/api/controllers/wxapp/app/City.php +++ b/api/controllers/wxapp/app/City.php @@ -11,7 +11,7 @@ require_once APPPATH . 'controllers/wxapp/Wxapp.php'; class City extends Wxapp { - private $province_lists = [350000, 430000, 520000]; //开放省份 湖南 福建 + private $province_lists = [350000, 430000, 520000, 460000]; //开放省份 function __construct($inputs, $app_key) { diff --git a/common/models/Area_model.php b/common/models/Area_model.php index fec14f73..34afc635 100644 --- a/common/models/Area_model.php +++ b/common/models/Area_model.php @@ -22,7 +22,7 @@ class Area_model extends HD_Model $result = array(); $where = []; if($show_limit){ - $where["province_id in (350000,430000,520000)"] = null; + $where["province_id in (350000,430000,520000,460000)"] = null; } $list = $this->select($where, null, null, null, 'distinct(province_id), province_name');