|
@@ -43,17 +43,17 @@ public class SensitiveStrategy implements FilterStrategy {
|
|
|
List<Content> filterContents = new ArrayList<>();
|
|
|
|
|
|
Map<String, String> titleMd5Map = new HashMap<>();
|
|
|
- Map<String, ArticleSensitive> articleSensitiveMap = new HashMap<>();
|
|
|
+// Map<String, ArticleSensitive> articleSensitiveMap = new HashMap<>();
|
|
|
List<String> md5List = new ArrayList<>();
|
|
|
for (Content content : param.getContents()) {
|
|
|
String md5 = Md5Util.encoderByMd5(content.getTitle());
|
|
|
md5List.add(md5);
|
|
|
titleMd5Map.put(content.getTitle(), md5);
|
|
|
}
|
|
|
- List<ArticleSensitive> articleSensitiveList = getArticleSensitive(md5List);
|
|
|
- if (CollectionUtil.isNotEmpty(articleSensitiveList)) {
|
|
|
- articleSensitiveMap = articleSensitiveList.stream().collect(Collectors.toMap(ArticleSensitive::getMd5, o -> o));
|
|
|
- }
|
|
|
+// List<ArticleSensitive> articleSensitiveList = getArticleSensitive(md5List);
|
|
|
+// if (CollectionUtil.isNotEmpty(articleSensitiveList)) {
|
|
|
+// articleSensitiveMap = articleSensitiveList.stream().collect(Collectors.toMap(ArticleSensitive::getMd5, o -> o));
|
|
|
+// }
|
|
|
|
|
|
List<Set<Character>> unsafeTitleCache = TitleSimilarCheckUtil.makeCache(UnSafeTitles);
|
|
|
for (Content content : param.getContents()) {
|