完善错误提示页面
This commit is contained in:
1 parent
30185b533b
commit
f39f4982bd
9 files changed
+68
-232
No files matched your search
@@ -105,25 +105,10 @@ class Index extends Base
|
||||
|
||||
// 查询用户登信息
|
||||
$list['username'] = session('username');
|
||||
// 查询用户组
|
||||
|
||||
// 查询用户所
|
||||
$admin = new \app\admin\model\Admin;
|
||||
$admininfo = $admin->where('username',$list['username'])
|
||||
->field('id')
|
||||
->with([
|
||||
'glGroup'=>function($query){
|
||||
$query->where('status',1)->field('title,rules,miaoshu');
|
||||
}
|
||||
])
|
||||
->find();
|
||||
$list['group'] = '';
|
||||
foreach ($admininfo->gl_group as $key => $value) {
|
||||
if($key==0)
|
||||
{
|
||||
$list['group'] = $value->title;
|
||||
}else{
|
||||
$list['group'] = $list['group'].'、'.$value->title;
|
||||
}
|
||||
}
|
||||
$list['group'] = $admin->getGroupnames(session('userid'));
|
||||
|
||||
$list['server'] = request()->server();
|
||||
// 获取版本号
|
||||
|
||||
Reference in new issue
Block a user