将老师表数据同步到管理中表中
This commit is contained in:
1 parent
c5dfc12664
commit
df36c72654
46 files changed
+1100
-565
No files matched your search
@@ -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', '请使用教师帐号登录');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user