提交 a1e8d374 作者: yanxin

新增资讯增加base64转url图片逻辑

上级 72b14c93
......@@ -601,6 +601,19 @@ public class InformationServiceImpl implements InformationService {
e.setAttachmentId(attachmentInfo.getId().toString());
});
}
//更新content字段
if (StringUtils.isNotBlank(specialInformation.getContentWithTag())) {
String content = Jsoup.parse(specialInformation.getContentWithTag()).text();
specialInformation.setContent(content);
//base64图片转url
specialInformation.setContentWithTag(imageUtil.changeBase64ToUrl(specialInformation.getContentWithTag()));
}
if (StringUtils.isNotBlank(specialInformation.getContentWithTagRaw())) {
String contentRaw = Jsoup.parse(specialInformation.getContentWithTagRaw()).text();
specialInformation.setContentRaw(contentRaw);
//base64图片转url
specialInformation.setContentWithTag(imageUtil.changeBase64ToUrl(specialInformation.getContentWithTag()));
}
esOpUtil.docSavaByEntity(EsIndexUtil.getIndexYear(Constants.SUBJECT_INDEX), specialInformation.getId(), specialInformation);
// 发送数据生命周期日志 入专题库 新增消息到kafka
final Subjectdatabase subjectdatabase = new Subjectdatabase();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论