Pārlūkot izejas kodu

按发布时间递减策略适用所有位置

wangyunpeng 8 mēneši atpakaļ
vecāks
revīzija
8edd26c82b

+ 4 - 4
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/score/strategy/CrawlerDaysDecreaseStrategy.java

@@ -32,10 +32,10 @@ public class CrawlerDaysDecreaseStrategy implements ScoreStrategy {
         }
         long now = DateUtils.getTodayStart();
         for (Content content : param.getContents()) {
-            String[] contentPools = accountContentPoolConfigService.getContentPools(param.getAccountName());
-            if (!contentPools[2].equals(content.getContentPoolType())) {
-                continue;
-            }
+//            String[] contentPools = accountContentPoolConfigService.getContentPools(param.getAccountName());
+//            if (!contentPools[2].equals(content.getContentPoolType())) {
+//                continue;
+//            }
             Score score = new Score();
             score.setStrategy(this);
             score.setContentId(content.getId());