提交 2f632035 作者: chenshiqiang

better

上级 69ff9ad7
...@@ -186,7 +186,8 @@ class KnowledgeServiceImpl implements IKnowledgeService { ...@@ -186,7 +186,8 @@ class KnowledgeServiceImpl implements IKnowledgeService {
String text = Jsoup.parse(tem).text(); String text = Jsoup.parse(tem).text();
log.info("info:{}", text); log.info("info:{}", text);
if ((!tem.contains("<title>")) && (!text.isEmpty())) { if ((!tem.contains("<title>")) && (!text.isEmpty())) {
knowledge.setTitle(text); String[] s = text.split(" ");
knowledge.setTitle(s[0]);
break; break;
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论