正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -107,7 +107,6 @@ class AdminIndexController extends AdminBaseController | @@ -107,7 +107,6 @@ class AdminIndexController extends AdminBaseController | ||
107 | } else { | 107 | } else { |
108 | //先查此人的下级 | 108 | //先查此人的下级 |
109 | $son_arr = Db::name('user')->where(['parent_id' => $item['id']])->field('id')->select()->toArray(); | 109 | $son_arr = Db::name('user')->where(['parent_id' => $item['id']])->field('id')->select()->toArray(); |
110 | - print_r($son_arr); | ||
111 | if (!empty($son_arr)) { | 110 | if (!empty($son_arr)) { |
112 | $son_str = ''; | 111 | $son_str = ''; |
113 | foreach ($son_arr as $key => $v) { | 112 | foreach ($son_arr as $key => $v) { |
@@ -117,6 +116,7 @@ class AdminIndexController extends AdminBaseController | @@ -117,6 +116,7 @@ class AdminIndexController extends AdminBaseController | ||
117 | $son_str .= $v['id'] . ','; | 116 | $son_str .= $v['id'] . ','; |
118 | } | 117 | } |
119 | } | 118 | } |
119 | + echo $son_str; | ||
120 | $map = [ | 120 | $map = [ |
121 | 'uid' => ['in', $son_str], | 121 | 'uid' => ['in', $son_str], |
122 | 'pay_type' => ['eq', 3], | 122 | 'pay_type' => ['eq', 3], |
-
请 注册 或 登录 后发表评论