瀏覽代碼

filter exp upgrade

丁云鹏 2 月之前
父節點
當前提交
0be91226d5

+ 2 - 2
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/filter/FilterService.java

@@ -87,7 +87,7 @@ public class FilterService {
         if (ugcFilterWeight != null && ugcFilterWeight != 0) {
         if (ugcFilterWeight != null && ugcFilterWeight != 0) {
             int rand = RandomUtils.nextInt(0, 100);
             int rand = RandomUtils.nextInt(0, 100);
             if (ugcFilterWeight >= 100 || rand < ugcFilterWeight) {
             if (ugcFilterWeight >= 100 || rand < ugcFilterWeight) {
-                log.info("hit ugc filter weight:{} rand:{}", ugcFilterWeight, rand);
+                // log.info("hit ugc filter weight:{} rand:{}", ugcFilterWeight, rand);
                 strategies.add(ServiceBeanFactory.getBean(VideoSourceTypeStrategy.class));
                 strategies.add(ServiceBeanFactory.getBean(VideoSourceTypeStrategy.class));
             }
             }
         }
         }
@@ -97,7 +97,7 @@ public class FilterService {
         if (allSpiderFilterWeight != null && allSpiderFilterWeight != 0) {
         if (allSpiderFilterWeight != null && allSpiderFilterWeight != 0) {
             int rand = RandomUtils.nextInt(0, 100);
             int rand = RandomUtils.nextInt(0, 100);
             if (allSpiderFilterWeight >= 100 || rand < allSpiderFilterWeight) {
             if (allSpiderFilterWeight >= 100 || rand < allSpiderFilterWeight) {
-                log.info("hit all spider filter weight:{} rand:{}", allSpiderFilterWeight, rand);
+                // log.info("hit all spider filter weight:{} rand:{}", allSpiderFilterWeight, rand);
                 strategies.add(ServiceBeanFactory.getBean(GeneralSpiderStrategy.class));
                 strategies.add(ServiceBeanFactory.getBean(GeneralSpiderStrategy.class));
             }
             }
         }
         }