From 378a73715b5bc135c54a7e8e1058ce6b52f68eaf Mon Sep 17 00:00:00 2001 From: yafu Date: Tue, 1 Aug 2023 10:02:56 +0800 Subject: [PATCH] =?UTF-8?q?PushMe=E6=B6=88=E6=81=AF=E9=80=9A=E9=81=93?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0params=E5=8F=82=E6=95=B0=EF=BC=8C=E4=BB=A5?= =?UTF-8?q?=E6=94=AF=E6=8C=81markdown=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sample/notify.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sample/notify.js b/sample/notify.js index 247faabf..7f759401 100644 --- a/sample/notify.js +++ b/sample/notify.js @@ -344,7 +344,7 @@ async function sendNotify( aibotkNotify(text, desp), //智能微秘书 fsBotNotify(text, desp), //飞书机器人 smtpNotify(text, desp), //SMTP 邮件 - PushMeNotify(text, desp), //PushMe + PushMeNotify(text, desp, params), //PushMe ]); } @@ -1126,12 +1126,12 @@ function smtpNotify(text, desp) { }); } -function PushMeNotify(text, desp) { +function PushMeNotify(text, desp, params = {}) { return new Promise((resolve) => { if (PUSHME_KEY) { const options = { url: `https://push.i-i.me?push_key=${PUSHME_KEY}`, - json: { title: text, content: desp }, + json: { title: text, content: desp, ...params }, headers: { 'Content-Type': 'application/json', },