This commit is contained in:
xiaoyu
2025-03-12 16:54:54 +08:00
parent 548a5b73af
commit 0810c328d0
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -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()
+1 -1
View File
@@ -54,7 +54,7 @@
province_id: <?=$params['province_id'] ? $params['province_id'] : 0?>,
city_id: <?=$params['city_id'] ? $params['city_id'] : 0?>,
county_id: <?=$params['county_id'] ? $params['county_id'] : 0?>,
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: [],
+1 -1
View File
@@ -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)
{
+1 -1
View File
@@ -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');