|
|
|
@ -1541,4 +1541,17 @@ function getGameList($partner_id) {
|
|
|
|
|
return $data;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getAdminData ($uid) {
|
|
|
|
|
$adminData = M('auth_group_access')
|
|
|
|
|
->field('data_empower_type,data_president')
|
|
|
|
|
->join('left join sys_auth_group on sys_auth_group_access.group_id=sys_auth_group.id')
|
|
|
|
|
->where(array('uid'=>$uid))->find();
|
|
|
|
|
|
|
|
|
|
$promoteData = M('promote','tab_')->field('id')->where(array('admin_id'=>$uid))->select();
|
|
|
|
|
$promoteData = implode(',',array_column($promoteData,'id'));
|
|
|
|
|
$adminData['data_president'] = $adminData['data_president'].','.$promoteData;
|
|
|
|
|
|
|
|
|
|
return $adminData;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|