|
|
|
@ -1653,6 +1653,20 @@ function getPowerPromoteIds()
|
|
|
|
|
return $promoteIds;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function resetUserAuth()
|
|
|
|
|
{
|
|
|
|
|
$userAuth = session('user_auth');
|
|
|
|
|
$adminData = getAdminData($userAuth['uid']);
|
|
|
|
|
$groupId = getGameGroup($userAuth['uid']);
|
|
|
|
|
$userAuth['data_empower_type'] = $adminData['data_empower_type'];
|
|
|
|
|
$userAuth['data_president'] = $adminData['data_president'];
|
|
|
|
|
$userAuth['show_data'] = $adminData['show_data'];
|
|
|
|
|
session('user_group_id',$groupId);
|
|
|
|
|
session('user_auth', $userAuth);
|
|
|
|
|
session('user_auth_sign', data_auth_sign($userAuth));
|
|
|
|
|
session('user_auth_promote_ids', null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 为数据权限添加筛选参数
|
|
|
|
|
* @param array $map 查询条件
|
|
|
|
|