mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-09-20 18:47:58 +08:00
补全文档
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
| -4 | NotLoginException.BE_REPLACED | 已读取到 token,但是 token 已被顶下线 |
|
| -4 | NotLoginException.BE_REPLACED | 已读取到 token,但是 token 已被顶下线 |
|
||||||
| -5 | NotLoginException.KICK_OUT | 已读取到 token,但是 token 已被踢下线 |
|
| -5 | NotLoginException.KICK_OUT | 已读取到 token,但是 token 已被踢下线 |
|
||||||
| -6 | NotLoginException.TOKEN_FREEZE | 已读取到 token,但是 token 已被冻结 |
|
| -6 | NotLoginException.TOKEN_FREEZE | 已读取到 token,但是 token 已被冻结 |
|
||||||
|
| -7 | NotLoginException.NO_PREFIX | 未按照指定前缀提交 token |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -50,6 +51,9 @@ public SaResult handlerNotLoginException(NotLoginException nle)
|
|||||||
else if(nle.getType().equals(NotLoginException.TOKEN_FREEZE)) {
|
else if(nle.getType().equals(NotLoginException.TOKEN_FREEZE)) {
|
||||||
message = "token 已被冻结";
|
message = "token 已被冻结";
|
||||||
}
|
}
|
||||||
|
else if(nle.getType().equals(NotLoginException.NO_PREFIX)) {
|
||||||
|
message = "未按照指定前缀提交 token";
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
message = "当前会话未登录";
|
message = "当前会话未登录";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user