优化 ajax/area兼容一键CRUD生成的row数组

pull/51/head
PPPSCN 2018-03-18 22:13:02 +08:00
parent 74394293f0
commit fcde614fae
1 changed files with 3 additions and 2 deletions

View File

@ -264,8 +264,9 @@ class Ajax extends Backend
*/
public function area()
{
$province = $this->request->get('province');
$city = $this->request->get('city');
$params = $this->request->get("row/a");
$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];
$provincelist = null;
if ($province !== '')