refactor: 修改鉴权中单件
This commit is contained in:
@@ -67,6 +67,8 @@ class Auth extends \thans\jwt\middleware\BaseMiddleware
|
||||
return $this->setAuthentication($response, $token);
|
||||
} catch (\thans\jwt\exception\TokenBlacklistGracePeriodException $e) {
|
||||
return error('登录已过期', [], 401);
|
||||
} catch (\Throwable $th) {
|
||||
return error('请登录', [], 401);
|
||||
}
|
||||
} catch (\Throwable $th) {
|
||||
return error('请先登录', [], 401);
|
||||
|
||||
Reference in New Issue
Block a user