From 3763b0d69ead85da3b7ca44dd1ef623a78f7bfe3 Mon Sep 17 00:00:00 2001 From: pppscn <35696959@qq.com> Date: Sat, 16 Feb 2019 14:38:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20ajax/area=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E4=B8=80=E9=94=AECRUD=E7=94=9F=E6=88=90=E7=9A=84row?= =?UTF-8?q?=E6=95=B0=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Ajax.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/application/admin/controller/Ajax.php b/application/admin/controller/Ajax.php index 649cc41d..50c9a7fb 100644 --- a/application/admin/controller/Ajax.php +++ b/application/admin/controller/Ajax.php @@ -245,8 +245,14 @@ class Ajax extends Backend */ public function area() { - $province = $this->request->get('province'); - $city = $this->request->get('city'); + $params = $this->request->get("row/a"); + if (!empty($params)) { + $province = isset($params['province']) ? $params['province'] : ''; + $city = isset($params['city']) ? $params['city'] : null; + } else { + $province = $this->request->get('province'); + $city = $this->request->get('city'); + } $where = ['pid' => 0, 'level' => 1]; $provincelist = null; if ($province !== '') {