|
@@ -125,7 +125,9 @@ public class RankV3Strategy implements RankStrategy {
|
|
|
if (CollectionUtils.isNotEmpty(pool)) {
|
|
|
Collections.shuffle(pool);
|
|
|
result.addAll(pool.subList(0, Math.min(pool.size(), param.getSize() - result.size())));
|
|
|
- } else {
|
|
|
+ }
|
|
|
+
|
|
|
+ if (result.size() < param.getSize()) {
|
|
|
// 兜底
|
|
|
pool = param.getBackup();
|
|
|
pool = deduplication(pool);
|