修改:

1.修改检查账号权限的ErrorCode枚举值
2.修改拦截器通配符
3.修改 sql 日志打印
This commit is contained in:
2025-06-20 20:15:06 +08:00
parent 10ffc506ae
commit 1410d16bb5
3 changed files with 7 additions and 19 deletions

View File

@@ -38,7 +38,6 @@ public class UserController {
if (user == null) {
throw new BusinessException(ErrorCode.USERNAME_OR_PASSWORD_ERROR);
}
if (!usersService.isPasswordMatch(usersDTO.getPassword(), user.getPassword())) {
throw new BusinessException(ErrorCode.USERNAME_OR_PASSWORD_ERROR);
}
@@ -49,8 +48,8 @@ public class UserController {
if (usersService.isExpired(usersDTO.getTenantId())){
throw new BusinessException(ErrorCode.PACKAGE_EXPIRED);
}
if (usersService.checkCrawlRole(user.getId())){
throw new BusinessException(ErrorCode.NOT_FOUND_ERROR);
if (!usersService.checkCrawlRole(user.getId())){
throw new BusinessException(ErrorCode.LOGIN_NOW_ALLOWED);
}
Long second = usersService.getTenantExpiredTime(usersDTO.getTenantId());
SystemUsersVO systemUsersVO = new SystemUsersVO();