Add the ability to notify @everyone in DingTalk notifications (#4718)

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
凯观生活
2024-04-27 23:16:39 +08:00
committed by GitHub
parent c86706f189
commit 126d6cd912
3 changed files with 29 additions and 2 deletions

View File

@@ -19,6 +19,9 @@ class DingDing extends NotificationProvider {
markdown: {
title: `[${this.statusToString(heartbeatJSON["status"])}] ${monitorJSON["name"]}`,
text: `## [${this.statusToString(heartbeatJSON["status"])}] ${monitorJSON["name"]} \n> ${heartbeatJSON["msg"]}\n> Time (${heartbeatJSON["timezone"]}): ${heartbeatJSON["localDateTime"]}`,
},
"at": {
"isAtAll": notification.mentioning === "everyone"
}
};
if (await this.sendToDingDing(notification, params)) {