修改:
1.判断登录用户是否允许登录爬虫客户端
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user