feat(emergency): 急救宣教资源推送到应急群聊
This commit is contained in:
+11
-3
@@ -1127,8 +1127,13 @@ public class SysBaseApiImpl implements ISysBaseAPI {
|
||||
if (map != null) {
|
||||
for (Map.Entry<String, String> entry : map.entrySet()) {
|
||||
String str = "${" + entry.getKey() + "}";
|
||||
title = title.replace(str, entry.getValue());
|
||||
content = content.replace(str, entry.getValue());
|
||||
String value = entry.getValue() != null ? entry.getValue() : "";
|
||||
if (title != null) {
|
||||
title = title.replace(str, value);
|
||||
}
|
||||
if (content != null) {
|
||||
content = content.replace(str, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
SysMessage sysMessage = new SysMessage();
|
||||
@@ -1161,7 +1166,10 @@ public class SysBaseApiImpl implements ISysBaseAPI {
|
||||
if (map != null) {
|
||||
for (Map.Entry<String, String> entry : map.entrySet()) {
|
||||
String str = "${" + entry.getKey() + "}";
|
||||
content = content.replace(str, entry.getValue());
|
||||
String value = entry.getValue() != null ? entry.getValue() : "";
|
||||
if (content != null) {
|
||||
content = content.replace(str, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
return content;
|
||||
|
||||
Reference in New Issue
Block a user