mirror of
https://gitee.com/dromara/sms4j.git
synced 2025-12-06 17:08:40 +08:00
邮件插件 html模板替换bug修复,该bug曾导致模板替换会导致整行被替换
This commit is contained in:
parent
0369217f01
commit
4a0b9df8ce
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user