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

pull/98/MERGE
pppscn 2019-02-16 14:38:43 +08:00 committed by Karson
parent 70f9bf0197
commit 3763b0d69e
1 changed files with 8 additions and 2 deletions

View File

@ -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 !== '') {