|
@@ -1,15 +1,16 @@
|
|
|
package com.tzld.longarticle.recommend.server.service.filter;
|
|
|
|
|
|
import com.tzld.longarticle.recommend.server.common.ThreadPoolFactory;
|
|
|
-import com.tzld.longarticle.recommend.server.common.enums.RankStrategyEnum;
|
|
|
import com.tzld.longarticle.recommend.server.model.Content;
|
|
|
import com.tzld.longarticle.recommend.server.service.ServiceBeanFactory;
|
|
|
-import com.tzld.longarticle.recommend.server.service.filter.strategy.*;
|
|
|
+import com.tzld.longarticle.recommend.server.service.filter.strategy.BadStrategy;
|
|
|
+import com.tzld.longarticle.recommend.server.service.filter.strategy.ColdStartBackupFilterStrategy;
|
|
|
+import com.tzld.longarticle.recommend.server.service.filter.strategy.HistoryTitleStrategy;
|
|
|
+import com.tzld.longarticle.recommend.server.service.filter.strategy.SensitiveStrategy;
|
|
|
import com.tzld.longarticle.recommend.server.util.CommonCollectionUtils;
|
|
|
import com.tzld.longarticle.recommend.server.util.JSONUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
-import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@@ -100,9 +101,9 @@ public class FilterService {
|
|
|
strategies.add(ServiceBeanFactory.getBean(HistoryTitleStrategy.class));
|
|
|
strategies.add(ServiceBeanFactory.getBean(BadStrategy.class));
|
|
|
strategies.add(ServiceBeanFactory.getBean(SensitiveStrategy.class));
|
|
|
- if (StringUtils.equals(param.getStrategy(), RankStrategyEnum.ArticleRankV3.getStrategy())) {
|
|
|
- strategies.add(ServiceBeanFactory.getBean(AccountPreDistributeStrategy.class));
|
|
|
- }
|
|
|
+// if (StringUtils.equals(param.getStrategy(), RankStrategyEnum.ArticleRankV3.getStrategy())) {
|
|
|
+// strategies.add(ServiceBeanFactory.getBean(AccountPreDistributeStrategy.class));
|
|
|
+// }
|
|
|
return strategies;
|
|
|
}
|
|
|
}
|