将thinkpp5.1升级到thinkphp6.0

This commit is contained in:
cxdbz committed 2019-12-01 20:48:48 +08:00
1 parent 338ce8261c
commit 6eb9b489d9
354 files changed
+83184

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
<?php
namespace app\common\controller;
// 引用控制器类
use app\BaseController;
// 引用权限验证类
use think\auth\Auth;
class Base extends Controller
{
// 调用Auth中间件进行用户权限验证
protected $middleware = [
'OnLine'=>[
'except'=>[
'exit',
],
],
];
public function _empty()
{
$this->error('不好意思,您访问的页面不存在~');
}
}