Files
mayi-grade/app/base/controller/StudentSearchBase.php
T
2020-12-18 15:17:33 +08:00

31 lines
571 B
PHP
Executable File

<?php
namespace app\base\controller;
// 引用控制器基类
use app\BaseController;
/**
* 控制器基础类
*/
abstract class StudentSearchBase extends BaseController
{
/**
* 控制器中间件
* @var array
*/
protected $middleware = [
'online'
,'login'
];
// 初始化变量
protected function initialize()
{
$this->online = session('onlineCategory');
if($this->online != 'student')
{
\app\facade\OnLine::jump('/login', '请使用学生帐号登录');
}
}
}