Selaa lähdekoodia

v3 3-8去除随机

wangyunpeng 10 kuukautta sitten
vanhempi
commit
f88e7359d1

+ 0 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/rank/strategy/RankV3Strategy.java

@@ -125,7 +125,6 @@ public class RankV3Strategy implements RankStrategy {
         // 3-8
         List<Content> pool = contentMap.get(contentPools[2]);
         if (CollectionUtils.isNotEmpty(pool)) {
-            Collections.shuffle(pool);
             result.addAll(pool.subList(0, Math.min(pool.size(), param.getSize() - result.size())));
         }