From 50af605dada272d88f8090e9cd452e37a9f70f22 Mon Sep 17 00:00:00 2001 From: beanjs <445212619@qq.com> Date: Sat, 28 Sep 2024 17:08:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20pushplus=20=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E5=86=85=E5=AE=B9=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sample/notify.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sample/notify.js b/sample/notify.js index cfbef59d..5f60b4b3 100644 --- a/sample/notify.js +++ b/sample/notify.js @@ -761,7 +761,9 @@ function pushPlusNotify(text, desp, params) { return new Promise((resolve) => { const { PUSH_PLUS_TOKEN, PUSH_PLUS_USER } = push_config; if (PUSH_PLUS_TOKEN) { - desp = desp.replace(/[\n\r]/g, '
'); // 默认为html, 不支持plaintext + if(!params.template || params.template == 'html'){ + desp = desp.replace(/[\n\r]/g, '
'); // 默认为html, 不支持plaintext + } const body = { token: `${PUSH_PLUS_TOKEN}`, title: `${text}`,