wangyunpeng 7 bulan lalu
induk
melakukan
9c7319d797

+ 2 - 2
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/DataDashboardService.java

@@ -1268,8 +1268,8 @@ public class DataDashboardService {
         if (hisMinDate > 0) {
             double firstExplorationIntervalAvg = Double.isNaN(item.getFirstExplorationIntervalAvg()) ? 0.0 : item.getFirstExplorationIntervalAvg();
             double explorationInterval = (article.getPublishTimestamp() - hisMinDate) / 86400.0;
-            firstExplorationIntervalAvg = (firstExplorationIntervalAvg * (item.getTotalArticleReleaseCountNonInfinite() - 1)
-                    + explorationInterval) / item.getTotalArticleReleaseCountNonInfinite();
+            firstExplorationIntervalAvg = (firstExplorationIntervalAvg * (item.getActualArticleReleaseCount() - 1)
+                    + explorationInterval) / item.getActualArticleReleaseCount();
             item.setFirstExplorationIntervalAvg(firstExplorationIntervalAvg);
         }
         scoreHisPublishTimeMap.put(type, scorePublishTime);