正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
@@ -66,6 +66,7 @@ class SchoolController extends AdminBaseController{ | @@ -66,6 +66,7 @@ class SchoolController extends AdminBaseController{ | ||
66 | public function getArea(){ | 66 | public function getArea(){ |
67 | $parent_id = $this->request->param('pid'); | 67 | $parent_id = $this->request->param('pid'); |
68 | $where['name'] = ['like',"%$parent_id%"]; | 68 | $where['name'] = ['like',"%$parent_id%"]; |
69 | + $where['pid'] = ['eq',0]; | ||
69 | $data = Db::name('area')->where($where)->select(); | 70 | $data = Db::name('area')->where($where)->select(); |
70 | $this->success('SUCCESS','',$data); | 71 | $this->success('SUCCESS','',$data); |
71 | } | 72 | } |
-
请 注册 或 登录 后发表评论