上移更多操作
This commit is contained in:
1 parent
37bac6155c
commit
81126bbb53
23 files changed
+557
-371
No files matched your search
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user