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!'); - } -}