diff --git a/server/notification-providers/dingding.js b/server/notification-providers/dingding.js index 79b0605a6..39f8b1711 100644 --- a/server/notification-providers/dingding.js +++ b/server/notification-providers/dingding.js @@ -12,8 +12,8 @@ class DingDing extends NotificationProvider { async send(notification, msg, monitorJSON = null, heartbeatJSON = null) { const okMsg = "Sent Successfully."; const mentionAll = notification.mentioning === "everyone"; - const mobileList = notification.mentioning === "specify-mobiles" ? notification.mobileList.split(",") : []; - const userList = notification.mentioning === "specify-users" ? notification.userList.split(",") : []; + const mobileList = notification.mentioning === "specify-mobiles" ? notification.mobileList : []; + const userList = notification.mentioning === "specify-users" ? notification.userList : []; const mentionStr = [ ...mobileList || [], ...userList || [] ].map(item => `@${item}`).join(" "); try { if (heartbeatJSON != null) { diff --git a/src/components/notifications/DingDing.vue b/src/components/notifications/DingDing.vue index f6012818b..d5227bb39 100644 --- a/src/components/notifications/DingDing.vue +++ b/src/components/notifications/DingDing.vue @@ -25,23 +25,109 @@