修改:

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

@@ -63,4 +63,10 @@ public class SystemUsersServiceImpl extends ServiceImpl<SystemUsersMapper,System
return 0L;
}
@Override
public boolean checkCrawlRole(Long userId) {
SystemUsers systemUsers = baseMapper.selectById(userId);
return systemUsers.getCrawl() == 1;
}
}