wangyunpeng 10 meses atrás
pai
commit
3cd9b4f982

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

@@ -47,6 +47,7 @@ public class RankV5Strategy implements RankStrategy {
         List<RankItem> items = CommonCollectionUtils.toList(param.getContents(), c -> {
             RankItem item = new RankItem();
             item.setContent(c);
+            c.setScoreMap(scoreMap.get(c.getId()));
             item.setScoreMap(scoreMap.get(c.getId()));
             double score;
             if (contentPools[0].equals(item.getContent().getContentPoolType())
@@ -64,6 +65,7 @@ public class RankV5Strategy implements RankStrategy {
                         + item.getScore(PublishTimesStrategy.class.getSimpleName())
                         + item.getScore(FlowCtlDecreaseStrategy.class.getSimpleName());
             }
+            c.setScore(score);
             item.setScore(score);
             return item;
         });