修改:

1.判断登录用户是否允许登录爬虫客户端
This commit is contained in:
2025-06-20 19:22:25 +08:00
parent 440776cfac
commit 10ffc506ae
8 changed files with 118 additions and 65 deletions

View File

@@ -49,6 +49,9 @@ 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);
}
Long second = usersService.getTenantExpiredTime(usersDTO.getTenantId());
SystemUsersVO systemUsersVO = new SystemUsersVO();
BeanUtil.copyProperties(user, systemUsersVO);