feat(emergency): 急救宣教资源推送到应急群聊

This commit is contained in:
2026-06-25 15:53:22 +08:00
parent 3f63abe1e3
commit 8761a965aa
17 changed files with 407 additions and 23 deletions
@@ -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;