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}`,