|
@@ -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));
|
|
}
|
|
}
|
|
}
|
|
}
|