上移更多操作

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

+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');
}
}