From 6b0eb5f8494c63c32fe23013a50c217d138eeba9 Mon Sep 17 00:00:00 2001 From: yanwenwu Date: Sat, 25 Jan 2020 20:03:18 +0800 Subject: [PATCH] fixed bugs --- catch/CatchAdminService.php | 2 +- catch/login/controller/Index.php | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/catch/CatchAdminService.php b/catch/CatchAdminService.php index bb63f1d..982ba5f 100644 --- a/catch/CatchAdminService.php +++ b/catch/CatchAdminService.php @@ -86,7 +86,7 @@ class CatchAdminService extends Service protected function registerMiddleWares(): void { $this->app->middleware->import([ - 'catch_check_permission' => PermissionsMiddleware::class, + 'catch_check_permission' => PermissionsMiddleware::class, ], 'route'); } diff --git a/catch/login/controller/Index.php b/catch/login/controller/Index.php index 90745f5..50a6b23 100644 --- a/catch/login/controller/Index.php +++ b/catch/login/controller/Index.php @@ -1,14 +1,15 @@ putFile('ok', $file)); $params = $request->param(); $token = $auth->attempt($params);