123
This commit is contained in:
@@ -188,7 +188,7 @@ public class CurrentUserManager {
|
||||
}
|
||||
}
|
||||
if(res.getInviteId() != null && user.getInviteId() != null){
|
||||
ExecutorConstant.COMMON_EXECUTOR.execute(() -> loginManager.dealInviteId(user));
|
||||
ExecutorConstant.COMMON_EXECUTOR.execute(() -> loginManager.dealInviteId(user,false));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -91,5 +91,11 @@ public class HomeManager {
|
||||
return vos.subList(startIndex, endIndex);
|
||||
}
|
||||
|
||||
|
||||
public List<AnchorListVo> recommendFollows(Integer limit) {
|
||||
RBucket<List<AnchorListVo>> bucket = redissonClient.getBucket(RedisHttpConstant.HOME_RECOMMEND_REDIS);
|
||||
List<AnchorListVo> vos = bucket.get();
|
||||
Collections.shuffle(vos);
|
||||
int endIndex = Math.min(limit, vos.size());
|
||||
return vos.subList(0, endIndex);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user