正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
@@ -80,10 +80,10 @@ class AdminIndexController extends AdminBaseController | @@ -80,10 +80,10 @@ class AdminIndexController extends AdminBaseController | ||
80 | $where1['balance'] = ['elt', $param['max']]; | 80 | $where1['balance'] = ['elt', $param['max']]; |
81 | } | 81 | } |
82 | 82 | ||
83 | - $uid = (isset($param['uid'])) ? $param['uid'] : null; | 83 | + $p_id = (isset($param['uid'])) ? $param['uid'] : null; |
84 | //下级人员 | 84 | //下级人员 |
85 | - if ($uid) { | ||
86 | - $where3['parent_id'] = ['eq', $uid]; | 85 | + if ($p_id) { |
86 | + $where3['parent_id'] = ['eq', $p_id]; | ||
87 | } | 87 | } |
88 | 88 | ||
89 | $usersQuery = Db::name('user'); | 89 | $usersQuery = Db::name('user'); |
@@ -143,7 +143,7 @@ class AdminIndexController extends AdminBaseController | @@ -143,7 +143,7 @@ class AdminIndexController extends AdminBaseController | ||
143 | $this->assign('keyword', isset($param['keyword']) ? $param['keyword'] : ''); | 143 | $this->assign('keyword', isset($param['keyword']) ? $param['keyword'] : ''); |
144 | $this->assign('list', $list->items()); | 144 | $this->assign('list', $list->items()); |
145 | $this->assign('page', $list->render()); | 145 | $this->assign('page', $list->render()); |
146 | - $this->assign('uid', $uid); | 146 | + $this->assign('uid', $p_id); |
147 | // 渲染模板输出 | 147 | // 渲染模板输出 |
148 | return $this->fetch(); | 148 | return $this->fetch(); |
149 | } | 149 | } |
-
请 注册 或 登录 后发表评论