This commit is contained in:
yanwenwu
2020-05-18 10:12:33 +08:00
parent f913f76bd2
commit b4bb0a1910
2 changed files with 3 additions and 7 deletions

View File

@@ -49,15 +49,10 @@ class Index extends CatchController
* 登出
*
* @time 2019年11月28日
* @param CatchAuth $auth
* @return \think\response\Json
*/
public function logout(CatchAuth $auth): \think\response\Json
public function logout(): \think\response\Json
{
if ($auth->logout()) {
return CatchResponse::success();
}
return CatchResponse::fail('登出失败');
return CatchResponse::success();
}
}