提交者
Karson
优化 ajax/area兼容一键CRUD生成的row数组
正在显示
1 个修改的文件
包含
8 行增加
和
2 行删除
@@ -245,8 +245,14 @@ class Ajax extends Backend | @@ -245,8 +245,14 @@ class Ajax extends Backend | ||
245 | */ | 245 | */ |
246 | public function area() | 246 | public function area() |
247 | { | 247 | { |
248 | - $province = $this->request->get('province'); | ||
249 | - $city = $this->request->get('city'); | 248 | + $params = $this->request->get("row/a"); |
249 | + if (!empty($params)) { | ||
250 | + $province = isset($params['province']) ? $params['province'] : ''; | ||
251 | + $city = isset($params['city']) ? $params['city'] : null; | ||
252 | + } else { | ||
253 | + $province = $this->request->get('province'); | ||
254 | + $city = $this->request->get('city'); | ||
255 | + } | ||
250 | $where = ['pid' => 0, 'level' => 1]; | 256 | $where = ['pid' => 0, 'level' => 1]; |
251 | $provincelist = null; | 257 | $provincelist = null; |
252 | if ($province !== '') { | 258 | if ($province !== '') { |
-
请 注册 或 登录 后发表评论