邮件插件 html模板替换bug修复,该bug曾导致模板替换会导致整行被替换

This commit is contained in:
wind 2023-08-28 17:12:36 +08:00
parent 0369217f01
commit 4a0b9df8ce

View File

@ -90,7 +90,8 @@ public final class HtmlUtil {
for (Map.Entry<String, String> s : parameter.entrySet()) {
String piece = piece(s.getKey());
if (data.get(i).contains(piece)){
data.set(i,s.getValue());
String replace = data.get(i).replace(piece, s.getValue());
data.set(i,replace);
}
}
}