|
@@ -105,8 +105,10 @@ public class GetWeChatArticleService {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
String condensedAbstract = null;
|
|
String condensedAbstract = null;
|
|
|
|
+ String pctCondensedAbstract = null;
|
|
try {
|
|
try {
|
|
condensedAbstract = difyService.getCondensedAbstract(weChatArticleContent);
|
|
condensedAbstract = difyService.getCondensedAbstract(weChatArticleContent);
|
|
|
|
+ pctCondensedAbstract = difyService.getPctCondensedAbstract(weChatArticleContent);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
@@ -121,6 +123,8 @@ public class GetWeChatArticleService {
|
|
articleInfoDTO.setCategoryId(3);
|
|
articleInfoDTO.setCategoryId(3);
|
|
} else if (sourceInfo.getSourceName().equals("知识产权界")) {
|
|
} else if (sourceInfo.getSourceName().equals("知识产权界")) {
|
|
articleInfoDTO.setCategoryId(5);
|
|
articleInfoDTO.setCategoryId(5);
|
|
|
|
+ } else if (sourceInfo.getSourceName().equals("Bayes美国知识产权")) {
|
|
|
|
+ articleInfoDTO.setCategoryId(9);
|
|
} else {
|
|
} else {
|
|
articleInfoDTO.setCategoryId(6);
|
|
articleInfoDTO.setCategoryId(6);
|
|
}
|
|
}
|
|
@@ -130,6 +134,7 @@ public class GetWeChatArticleService {
|
|
articleInfoDTO.setPublicTime(createTime);
|
|
articleInfoDTO.setPublicTime(createTime);
|
|
articleInfoDTO.setWxArticleIcon(cover);
|
|
articleInfoDTO.setWxArticleIcon(cover);
|
|
articleInfoDTO.setDigest(condensedAbstract);
|
|
articleInfoDTO.setDigest(condensedAbstract);
|
|
|
|
+ articleInfoDTO.setPctDigest(pctCondensedAbstract);
|
|
articleInfoDTOS.add(articleInfoDTO);
|
|
articleInfoDTOS.add(articleInfoDTO);
|
|
}
|
|
}
|
|
articleInfoService.batchAddArticleInfo(articleInfoDTOS);
|
|
articleInfoService.batchAddArticleInfo(articleInfoDTOS);
|
|
@@ -248,9 +253,11 @@ public class GetWeChatArticleService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
String condensedAbstract = difyService.getCondensedAbstract(content);
|
|
String condensedAbstract = difyService.getCondensedAbstract(content);
|
|
|
|
+ String pctCondensedAbstract = difyService.getPctCondensedAbstract(content);
|
|
ArticleInfo articleInfo = new ArticleInfo();
|
|
ArticleInfo articleInfo = new ArticleInfo();
|
|
articleInfo.setTitle(title);
|
|
articleInfo.setTitle(title);
|
|
articleInfo.setDigest(condensedAbstract);
|
|
articleInfo.setDigest(condensedAbstract);
|
|
|
|
+ articleInfo.setPctDigest(pctCondensedAbstract);
|
|
articleInfo.setCategoryId(categoryId);
|
|
articleInfo.setCategoryId(categoryId);
|
|
articleInfo.setSourceId(sourceId);
|
|
articleInfo.setSourceId(sourceId);
|
|
articleInfo.setPublicTime(createTime);
|
|
articleInfo.setPublicTime(createTime);
|