修改:
1.修改检查账号权限的ErrorCode枚举值 2.修改拦截器通配符 3.修改 sql 日志打印
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user