Set<String> blockedUsers = redisTemplate.zrange("你的rediskey", 0, -1); if (!CollectionUtils.isEmpty(blockedUsers)) { if (blockedUsers.contains(String.valueOf(u.getUid()))) { //执行你的逻辑 } }
50,530
社区成员
85,610
社区内容
加载中
试试用AI创作助手写篇文章吧