From 42e6cd36aa9d9e9ee497b47ae48f0b4a3aedb463 Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Tue, 22 Sep 2020 11:13:53 +0800 Subject: [PATCH] =?UTF-8?q?update:=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catch/login/controller/Index.php | 4 +-- extend/catcher/command/ModuleCacheCommand.php | 30 ------------------- 2 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 extend/catcher/command/ModuleCacheCommand.php diff --git a/catch/login/controller/Index.php b/catch/login/controller/Index.php index 0285653..593e0e3 100644 --- a/catch/login/controller/Index.php +++ b/catch/login/controller/Index.php @@ -23,10 +23,8 @@ class Index extends CatchController public function login(LoginRequest $request, CatchAuth $auth) { try { - $params = $request->param(); - $token = $auth->attempt($params); return CatchResponse::success([ - 'token' => $token, + 'token' => $auth->attempt($request->param()), ], '登录成功'); } catch (\Exception $exception) { $code = $exception->getCode(); diff --git a/extend/catcher/command/ModuleCacheCommand.php b/extend/catcher/command/ModuleCacheCommand.php deleted file mode 100644 index 606a6ca..0000000 --- a/extend/catcher/command/ModuleCacheCommand.php +++ /dev/null @@ -1,30 +0,0 @@ -setName('catch:cache') - ->setDescription('cache routes, views, services of module'); - } - - protected function execute(Input $input, Output $output) - { - CatchAdmin::cacheRoutes(); - CatchAdmin::cacheServices(); - CatchAdmin::cacheViews(); - // 指令输出 - $output->info('succeed!'); - } -}