将老师表数据同步到管理中表中

This commit is contained in:
小松树 committed 2021-02-18 21:12:14 +08:00
1 parent c5dfc12664
commit df36c72654
46 files changed
+1100 -565

No files matched your search

-30
View File
@@ -1,30 +0,0 @@
<?php
namespace app\base\controller;
// 引用控制器基类
use app\BaseController;
/**
* 控制器基础类
*/
abstract class TeacherSearchBase extends BaseController
{
/**
* 控制器中间件
* @var array
*/
protected $middleware = [
'online'
,'login'
];
// 初始化变量
protected function initialize()
{
$this->online = session('onlineCategory');
if($this->online != 'teacher')
{
\app\facade\OnLine::jump('/login', '请使用教师帐号登录');
}
}
}
-35
View File
@@ -1,35 +0,0 @@
<?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');
}
}