Files
mayi-grade/application/common/controller/Base.php
T
2018-10-12 16:57:30 +08:00

23 lines
350 B
PHP

<?php
namespace app\common\controller;
// 引用控制器类
use think\Controller;
// 引用权限验证类
use think\auth\Auth;
class Base extends Controller
{
// 调用Auth中间件进行用户权限验证
protected $middleware = ['YanZheng'];
public function _empty()
{
$this->redirect('error/index/index');
}
}