Explorar el Código

20250513-晋级策略2开发

luojunhui hace 2 meses
padre
commit
a8f41ada98

+ 3 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/ArticlePromotionService.java

@@ -95,6 +95,8 @@ public class ArticlePromotionService {
     private Map<String, Map<String, Map<String, String>>> produceConfig;
     @Value("${topProducePlanId:}")
     private String topProducePlanId;
+    @Value("${readOpenFissionRateThreshold:}")
+    private Double readOpenFissionRateThreshold;
 
     private final List<String> contentPoolType = Arrays.asList("autoArticlePoolLevel1", "autoArticlePoolLevel3", "autoArticlePoolLevel4");
 
@@ -196,7 +198,7 @@ public class ArticlePromotionService {
                     .collect(Collectors.toList());
         } else {
             // 使用新规则过滤
-            listStrategyV2 = promotionWithReadOpenFissionRate(0.5, list);
+            listStrategyV2 = promotionWithReadOpenFissionRate(readOpenFissionRateThreshold, list);
         }
         listStrategyV2 = listStrategyV2.stream().filter(o -> !StrategyV1WxSn.contains(o.getWxSn())).collect(Collectors.toList());