上移更多操作

This commit is contained in:
小松树 committed 2021-02-13 13:03:29 +08:00
1 parent 37bac6155c
commit 81126bbb53
23 files changed
+557 -371

No files matched your search

+4 -1
View File
@@ -37,10 +37,13 @@ abstract class BaseController
* @var array
*/
protected $middleware = [
'online'
// 'online'
];
protected $online;
/**
* 构造方法
* @access public
+5 -5
View File
@@ -8,7 +8,7 @@ use app\BaseController;
/**
* 控制器基础类
*/
abstract class AdminBase extends BaseController
abstract class AdminBase extends BaseController
{
/**
* 控制器中间件
@@ -24,9 +24,9 @@ abstract class AdminBase extends BaseController
protected function initialize()
{
$this->online = session('onlineCategory');
// if($this->online != 'admin')
// {
// \app\facade\OnLine::jump('/login', '请使用管理员帐号登录');
// }
if($this->online != 'admin')
{
\app\facade\OnLine::jump('/login', '请使用管理员帐号登录');
}
}
}
+35
View File
@@ -0,0 +1,35 @@
<?php
namespace app\base\controller;
// 引用控制器基类
use app\BaseController;
/**
* 控制器基础类
*/
abstract class ToolBase extends BaseController
{
protected $middleware = [];
protected $luruTeacherId = '';
protected $online = '';
protected function initialize()
{
$this->online = session('onlineCategory');
if($this->online == 'teacher')
{
$this->middleware = [
'online'
,'login'
];
}else{
$this->middleware = [
'online'
,'login'
,'auth'
];
}
$this->luruTeacherId = session('user_id');
}
}
Loaded 3 of 23 files, more files were not shown because too many files have changed in this diff. Show more