...
|
...
|
@@ -55,7 +55,13 @@ class UsersController extends AdminBaseController{ |
|
|
// 获取邀请人数
|
|
|
$invite_count = 0;
|
|
|
if(in_array($v['status'],[2,3])) {
|
|
|
$invite_count = Db::name('my_user')->where('pid',$v['uid'])->count();
|
|
|
$invite_count = Db::name('my_user')
|
|
|
->alias('a')
|
|
|
->field('a.*,b.user_nickname')
|
|
|
->join('user b','a.uid = b.id','left')
|
|
|
->where('status',$v['status']+1)
|
|
|
->where('pid',$v['id'])
|
|
|
->count();
|
|
|
}
|
|
|
$list[$k]['invite_count'] = $invite_count;
|
|
|
}
|
...
|
...
|
|