From 282a027520080c3edf9705e78ce818b0ca1b8c0c Mon Sep 17 00:00:00 2001 From: qiaoyun680 Date: Wed, 23 Oct 2024 08:09:54 +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 --- sample/notify.js | 1 + 1 file changed, 1 insertion(+) diff --git a/sample/notify.js b/sample/notify.js index 4d2e3dea..012610c9 100644 --- a/sample/notify.js +++ b/sample/notify.js @@ -228,6 +228,7 @@ 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]