fixed bug

This commit is contained in:
yanwenwu
2020-05-19 08:22:48 +08:00
parent 9da4072b30
commit 64ce1243b4
3 changed files with 23 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ class AuthTokenMiddleware extends Middleware
throw new FailedException('token 过期', Code::LOGIN_EXPIRED);
}
if ($e instanceof TokenBlacklistException) {
throw new FailedException('token 被加入黑名单', Code::LOST_LOGIN);
throw new FailedException('token 被加入黑名单', Code::LOGIN_BLACKLIST);
}
if ($e instanceof TokenInvalidException) {
throw new FailedException('token 不合法', Code::LOST_LOGIN);