fix(asms): 同步问题
This commit is contained in:
+10
-1
File diff suppressed because one or more lines are too long
+8
@@ -399,6 +399,13 @@ public class SynchronizationAsmsService {
|
||||
String articleContent = eMap.get("articleContent");
|
||||
// 处理图片
|
||||
if (articleContent.contains("<img src=")){
|
||||
log.info("-------" + articleContent);
|
||||
// base64
|
||||
if (articleContent.contains("base64")){
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
stringBuilder.append("<p>").append(articleContent).append("</p>");
|
||||
articleContent = stringBuilder.toString();
|
||||
}else {
|
||||
String urlSuffix = articleContent.substring(articleContent.indexOf("getImg"),
|
||||
articleContent.indexOf("\" alt"));
|
||||
String imageUrl = asmsPostUtil.getHost() + urlSuffix;
|
||||
@@ -420,6 +427,7 @@ public class SynchronizationAsmsService {
|
||||
articleContent = stringBuilder.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
// 处理表格
|
||||
if (articleContent.contains("<table style=")){
|
||||
articleContent = "<p>" + articleContent + "</p>";
|
||||
|
||||
Reference in New Issue
Block a user