账号封禁模块新增服务指定功能

This commit is contained in:
click33
2022-09-07 01:57:28 +08:00
parent 3a84a070c4
commit a2798b3105
21 changed files with 257 additions and 83 deletions

View File

@@ -32,8 +32,8 @@ public class GlobalException implements EventListener<Throwable> {
} else if (e instanceof NotPermissionException) { // 如果是权限异常
NotPermissionException ee = (NotPermissionException) e;
aj = AjaxJson.getNotJur("无此权限:" + ee.getPermission());
} else if (e instanceof DisableLoginException) { // 如果是被封禁异常
DisableLoginException ee = (DisableLoginException) e;
} else if (e instanceof DisableServiceException) { // 如果是被封禁异常
DisableServiceException ee = (DisableServiceException) e;
aj = AjaxJson.getNotJur("账号被封禁:" + ee.getDisableTime() + "秒后解封");
} else { // 普通异常, 输出500 + 异常信息
aj = AjaxJson.getError(e.getMessage());