From 9e28cbd91d795ca75b512b192fc901d021987885 Mon Sep 17 00:00:00 2001 From: wuyanwen Date: Tue, 7 Jan 2020 19:18:24 +0800 Subject: [PATCH] =?UTF-8?q?=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 | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/catch/login/controller/Index.php b/catch/login/controller/Index.php index cd68ec6..ce3d208 100644 --- a/catch/login/controller/Index.php +++ b/catch/login/controller/Index.php @@ -12,18 +12,6 @@ use think\captcha\Captcha; class Index extends CatchController { - /** - * 登录 - * - * @time 2019年11月30日 - * @throws \Exception - * @return string - */ - public function index(): string - { - return $this->fetch(); - } - /** * 登陆 * @@ -35,7 +23,7 @@ class Index extends CatchController public function login(LoginRequest $request, CatchAuth $auth) { $params = $request->param(); - + $token = $auth->attempt($params); $user = $auth->user(); @@ -74,16 +62,4 @@ class Index extends CatchController return CatchResponse::fail('登出失败'); } - - /** - * - * @time 2019年12月12日 - * @param Captcha $captcha - * @param null $config - * @return \think\Response - */ - public function captcha(Captcha $captcha, $config = null): \think\Response - { - return $captcha->create($config); - } }