From dce908a07b399d39e4fb36776afa4aec1270bc7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=9B=A8?= <614422099@QQ.com> Date: Tue, 23 Nov 2021 20:36:22 +0800 Subject: [PATCH] Update dingding notification title Add the status to the title, you can see the message title on the friend list page. --- server/notification-providers/dingding.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/notification-providers/dingding.js b/server/notification-providers/dingding.js index f099192d8..cf08f14bf 100644 --- a/server/notification-providers/dingding.js +++ b/server/notification-providers/dingding.js @@ -14,8 +14,8 @@ class DingDing extends NotificationProvider { let params = { msgtype: "markdown", markdown: { - title: monitorJSON["name"], - text: `## [${this.statusToString(heartbeatJSON["status"])}] \n > ${heartbeatJSON["msg"]} \n > Time(UTC):${heartbeatJSON["time"]}`, + title: `[${this.statusToString(heartbeatJSON["status"])}] ${monitorJSON["name"]}`, + text: `## [${this.statusToString(heartbeatJSON["status"])}] ${monitorJSON["name"]} \n > ${heartbeatJSON["msg"]} \n > Time(UTC):${heartbeatJSON["time"]}`, } }; if (this.sendToDingDing(notification, params)) {