修改中间件

This commit is contained in:
JaguarJack 2019-01-21 10:43:44 +08:00
parent b1efecb351
commit 8a31920b9d
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
namespace app\http\middleware; namespace app\http\middleware;
class checkLogin class CheckLogin
{ {
public function handle($request, \Closure $next) public function handle($request, \Closure $next)
{ {

View File

@ -16,6 +16,6 @@ return [
// 默认中间件命名空间 // 默认中间件命名空间
'default_namespace' => 'app\\http\\middleware\\', 'default_namespace' => 'app\\http\\middleware\\',
'auth' => \think\permissions\PermissionMiddleware::class, 'auth' => \think\permissions\PermissionMiddleware::class,
'checkLogin' => app\http\middleware\checkLogin::class, 'checkLogin' => app\http\middleware\CheckLogin::class,
'logRecord' => app\http\middleware\LogRecord::class, 'logRecord' => app\http\middleware\LogRecord::class,
]; ];