Kaynağa Gözat

TodayPublishStrategy fix

wangyunpeng 10 saat önce
ebeveyn
işleme
1202d36d50

+ 1 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/filter/strategy/TodayPublishStrategy.java

@@ -51,7 +51,7 @@ public class TodayPublishStrategy implements FilterStrategy {
                 todayPublishContentIds.add(pc.getId());
             }
         }
-        if (CollectionUtils.isNotEmpty(todayPublishFailList)) {
+        if (CollectionUtils.isNotEmpty(todayPublishFailList) && todayPublishFailList.size() < 100) {
             for (PublishContent pc : todayPublishFailList) {
                 todayPublishIdSet.add(pc.getId());
                 todayPublishContentIds.add(pc.getId());