From 510fad7ab693dc239828e54b962e2f66767541e9 Mon Sep 17 00:00:00 2001 From: qiaoyun680 Date: Wed, 23 Oct 2024 03:31:21 +0000 Subject: [PATCH] =?UTF-8?q?=E6=8C=89pr=E8=A6=81=E6=B1=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/services/notify.ts | 1 + sample/notify.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/back/services/notify.ts b/back/services/notify.ts index f2d0b30a..e386bcf9 100644 --- a/back/services/notify.ts +++ b/back/services/notify.ts @@ -156,6 +156,7 @@ export default class NotificationService { const url = matchResult && matchResult[1] ? `https://${matchResult[1]}.push.ft07.com/send/${serverChanKey}.send` : `https://sctapi.ftqq.com/${serverChanKey}.send`; + try { const res: any = await got .post(url, { diff --git a/sample/notify.js b/sample/notify.js index 242cd185..4d2e3dea 100644 --- a/sample/notify.js +++ b/sample/notify.js @@ -228,7 +228,6 @@ function serverNotify(text, desp) { if (PUSH_KEY) { // 微信server酱推送通知一个\n不会换行,需要两个\n才能换行,故做此替换 desp = desp.replace(/[\n\r]/g, '\n\n'); - const matchResult = PUSH_KEY.match(/^sctp(\d+)t/i); const options = { url: matchResult && matchResult[1]