mirror of https://gitee.com/karson/fastadmin.git
优化 ajax/area兼容一键CRUD生成的row数组
parent
74394293f0
commit
fcde614fae
|
|
@ -264,8 +264,9 @@ class Ajax extends Backend
|
||||||
*/
|
*/
|
||||||
public function area()
|
public function area()
|
||||||
{
|
{
|
||||||
$province = $this->request->get('province');
|
$params = $this->request->get("row/a");
|
||||||
$city = $this->request->get('city');
|
$province = !empty($params['province']) ? $params['province'] : $this->request->get('province');
|
||||||
|
$city = !empty($params['city']) ? $params['city'] : $this->request->get('city');
|
||||||
$where = ['pid' => 0, 'level' => 1];
|
$where = ['pid' => 0, 'level' => 1];
|
||||||
$provincelist = null;
|
$provincelist = null;
|
||||||
if ($province !== '')
|
if ($province !== '')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue