fix(notification): 修正 PushPlusPlus 通知提供商的令牌使用错误

- 将 axios.post 请求的 URL 从 notification.pushPlusPlusToken 修改为 notification.PushPlusPlusToken
- 更新通知设置中的 PushPlusPlus 显示名称,使其首字母大写
- 在中文语言文件中添加 PushPlusPlus Token 相关翻译
This commit is contained in:
Teror Fox 2025-03-22 13:51:00 +08:00
parent c7b8055cdc
commit 10fe953b52
No known key found for this signature in database
GPG key ID: 82B1E8A0C5C0BAEA
5 changed files with 8 additions and 5 deletions
server/notification-providers
src
components/notifications
lang

View file

@ -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,
});

View file

@ -117,7 +117,7 @@ const NotificationFormList = {
"PushByTechulus": TechulusPush,
"PushDeer": PushDeer,
"pushover": Pushover,
"pushplusplus": PushPlusPlus,
"PushPlusPlus": PushPlusPlus,
"pushy": Pushy,
"rocket.chat": RocketChat,
"serwersms": SerwerSMS,

View file

@ -1100,5 +1100,6 @@
"RabbitMQ Nodes": "RabbitMQ 管理节点",
"Separate multiple email addresses with commas": "用逗号分隔多个电子邮件地址",
"rabbitmqHelpText": "要使用此监控项,您需要在 RabbitMQ 设置中启用管理插件。有关更多信息,请参阅 {rabitmq_documentation}。",
"aboutSlackUsername": "更改消息发件人的显示名称。如果您想提及某人,请另行将其包含在友好名称中。"
"aboutSlackUsername": "更改消息发件人的显示名称。如果您想提及某人,请另行将其包含在友好名称中。",
"PushPlusPlus Token": "PushPlusPlus Token"
}

View file

@ -1085,5 +1085,6 @@
"cellsyntOriginator": "在收件人處作為消息發送者顯示。允許的內容取決於發件人類型。",
"cellsyntDestination": "收件人的手機號碼需要使用以 00+國家代碼開頭的國際通用格式,例如若要發給英國的號碼 07920 110 000 需使用 00447920110000 作為收件人手機號碼至多17位數。需發送給多個收件人手機號碼時可使用英文逗號分隔每次請求最 多250 00個收件人手機號碼。",
"threemaRecipient": "收件人",
"threemaRecipientTypeIdentityFormat": "8 位字符"
"threemaRecipientTypeIdentityFormat": "8 位字符",
"PushPlusPlus Token": "PushPlusPlus Token"
}

View file

@ -1085,5 +1085,6 @@
"conditionValuePlaceholder": "值",
"Separate multiple email addresses with commas": "用逗號分隔多個電子郵件地址",
"record": "記錄",
"New Group": "新分組"
"New Group": "新分組",
"PushPlusPlus Token": "PushPlusPlus Token"
}