合并用户登录界面

This commit is contained in:
win10 committed 2020-09-14 15:03:24 +08:00
1 parent 53615988c8
commit fd7a567f1c
27 files changed
+256 -778

No files matched your search

+2 -4
View File
@@ -30,18 +30,16 @@ class Index extends BaseController
{
$this->middleware = [
'online'
,'terlogin'
,'login'
];
$this->luruTeacherId = session('teacher.userid');
}else{
$this->middleware = [
'online'
,'login'
,'auth'
];
$this->luruTeacherId = session('admin.userid');
}
$this->luruTeacherId = session('user_id');
}
// 成绩列表
+10
View File
@@ -19,4 +19,14 @@ abstract class AdminBase extends BaseController
,'login'
,'auth'
];
// 初始化变量
protected function initialize()
{
$this->online = session('onlineCategory');
if($this->online != 'admin')
{
\app\facade\OnLine::jump('/login', '请使用管理员帐号登录');
}
}
}
+11 -1
View File
@@ -15,6 +15,16 @@ abstract class StudentSearchBase extends BaseController
*/
protected $middleware = [
'online'
,'stulogin'
,'login'
];
// 初始化变量
protected function initialize()
{
$this->online = session('onlineCategory');
if($this->online != 'student')
{
\app\facade\OnLine::jump('/login', '请使用学生帐号登录');
}
}
}
Loaded 3 of 27 files, more files were not shown because too many files have changed in this diff. Show more