From 10fe953b520e64e9ea206dc11730d723c35ca46f Mon Sep 17 00:00:00 2001 From: Teror Fox <i@trfox.top> Date: Sat, 22 Mar 2025 13:51:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(notification):=20=E4=BF=AE=E6=AD=A3=20PushP?= =?UTF-8?q?lusPlus=20=E9=80=9A=E7=9F=A5=E6=8F=90=E4=BE=9B=E5=95=86?= =?UTF-8?q?=E7=9A=84=E4=BB=A4=E7=89=8C=E4=BD=BF=E7=94=A8=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 axios.post 请求的 URL 从 notification.pushPlusPlusToken 修改为 notification.PushPlusPlusToken - 更新通知设置中的 PushPlusPlus 显示名称,使其首字母大写 - 在中文语言文件中添加 PushPlusPlus Token 相关翻译 --- server/notification-providers/pushplusplus.js | 2 +- src/components/notifications/index.js | 2 +- src/lang/zh-CN.json | 3 ++- src/lang/zh-HK.json | 3 ++- src/lang/zh-TW.json | 3 ++- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/server/notification-providers/pushplusplus.js b/server/notification-providers/pushplusplus.js index 1568a5b30..3d39d6dd3 100644 --- a/server/notification-providers/pushplusplus.js +++ b/server/notification-providers/pushplusplus.js @@ -9,7 +9,7 @@ class PushPlusPlus extends NotificationProvider { const okMsg = "Sent Successfully."; const url = `https://pushplus.plus/send`; try { - await axios.post(notification.pushPlusPlusToken, { + await axios.post(notification.PushPlusPlusToken, { "title": this.checkStatus(heartbeatJSON, monitorJSON), "content": msg, }); diff --git a/src/components/notifications/index.js b/src/components/notifications/index.js index d6c719722..2741296f3 100644 --- a/src/components/notifications/index.js +++ b/src/components/notifications/index.js @@ -117,7 +117,7 @@ const NotificationFormList = { "PushByTechulus": TechulusPush, "PushDeer": PushDeer, "pushover": Pushover, - "pushplusplus": PushPlusPlus, + "PushPlusPlus": PushPlusPlus, "pushy": Pushy, "rocket.chat": RocketChat, "serwersms": SerwerSMS, diff --git a/src/lang/zh-CN.json b/src/lang/zh-CN.json index 4d33c0afd..4a9a277b0 100644 --- a/src/lang/zh-CN.json +++ b/src/lang/zh-CN.json @@ -1100,5 +1100,6 @@ "RabbitMQ Nodes": "RabbitMQ 管理节点", "Separate multiple email addresses with commas": "用逗号分隔多个电子邮件地址", "rabbitmqHelpText": "要使用此监控项,您需要在 RabbitMQ 设置中启用管理插件。有关更多信息,请参阅 {rabitmq_documentation}。", - "aboutSlackUsername": "更改消息发件人的显示名称。如果您想提及某人,请另行将其包含在友好名称中。" + "aboutSlackUsername": "更改消息发件人的显示名称。如果您想提及某人,请另行将其包含在友好名称中。", + "PushPlusPlus Token": "PushPlusPlus Token" } diff --git a/src/lang/zh-HK.json b/src/lang/zh-HK.json index 9ecd5dd3a..84e04ab35 100644 --- a/src/lang/zh-HK.json +++ b/src/lang/zh-HK.json @@ -1085,5 +1085,6 @@ "cellsyntOriginator": "在收件人處作為消息發送者顯示。允許的內容取決於發件人類型。", "cellsyntDestination": "收件人的手機號碼需要使用以 00+國家代碼開頭的國際通用格式,例如若要發給英國的號碼 07920 110 000 需使用 00447920110000 作為收件人手機號碼(至多17位數)。需發送給多個收件人手機號碼時可使用英文逗號分隔,每次請求最 多250 00個收件人手機號碼。", "threemaRecipient": "收件人", - "threemaRecipientTypeIdentityFormat": "8 位字符" + "threemaRecipientTypeIdentityFormat": "8 位字符", + "PushPlusPlus Token": "PushPlusPlus Token" } diff --git a/src/lang/zh-TW.json b/src/lang/zh-TW.json index b894f1298..98392b648 100644 --- a/src/lang/zh-TW.json +++ b/src/lang/zh-TW.json @@ -1085,5 +1085,6 @@ "conditionValuePlaceholder": "值", "Separate multiple email addresses with commas": "用逗號分隔多個電子郵件地址", "record": "記錄", - "New Group": "新分組" + "New Group": "新分組", + "PushPlusPlus Token": "PushPlusPlus Token" }