This commit is contained in:
@@ -61,26 +61,25 @@ public class ReportBuilder {
|
|||||||
String newRendered = newJson.isEmpty()
|
String newRendered = newJson.isEmpty()
|
||||||
? "" : "“" + SkeletonAnnotator.annotateForWecom(newJson, newHighlight) + "”";
|
? "" : "“" + SkeletonAnnotator.annotateForWecom(newJson, newHighlight) + "”";
|
||||||
if (oldJson.isEmpty() && !newJson.isEmpty()) {
|
if (oldJson.isEmpty() && !newJson.isEmpty()) {
|
||||||
sb.append(" value 新增为 ").append(newRendered).append("\n\n");
|
sb.append(" value 新增为 :").append(newRendered).append("\n\n");
|
||||||
} else if (!oldJson.isEmpty() && newJson.isEmpty()) {
|
} else if (!oldJson.isEmpty() && newJson.isEmpty()) {
|
||||||
sb.append(" value 原结构 ").append(oldRendered).append(" 已删除写入\n\n");
|
sb.append(" value 原结构 :").append(oldRendered).append(" 已删除写入\n\n");
|
||||||
} else {
|
} else {
|
||||||
sb.append(" value 值从 ").append(oldRendered).append('\n');
|
sb.append(" value 值从 :").append(oldRendered).append('\n');
|
||||||
sb.append(" 变更为 ").append(newRendered).append("\n\n");
|
sb.append(" 变更为 :").append(newRendered).append("\n\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Key 行:warning 颜色 + 行内代码 + 加粗。
|
* Key 行:企微 warning 颜色 + 行内代码。
|
||||||
* 企微支持混用;代码样式可能略压过加粗,但颜色与代码块会稳定生效。
|
* 不加粗:企微无法稳定嵌套 {@code **} 与反引号,会露出字面量 {@code *}/{@code **}。
|
||||||
* key 包在反引号内,避免路径中的 {@code *} 干扰 markdown。
|
|
||||||
*/
|
*/
|
||||||
private void appendKeyLine(StringBuilder sb, String keyPattern) {
|
private void appendKeyLine(StringBuilder sb, String keyPattern) {
|
||||||
sb.append("- Key --> <font color=\"warning\">**`")
|
sb.append("- <font color=\"warning\">`Key --> ")
|
||||||
.append(nvl(keyPattern))
|
.append(nvl(keyPattern))
|
||||||
.append("`**</font>\n");
|
.append("`</font>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user