From e85d8308a1828ff7db9245ea95e45bf0f92c62a7 Mon Sep 17 00:00:00 2001 From: testonlys <67446694+testonlys@users.noreply.github.com> Date: Thu, 21 Jan 2021 09:58:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20QQ=20=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E6=95=8F=E6=84=9F=E8=AF=8D=E8=BF=87=E6=BB=A4=E5=8F=8A=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=8F=91=E9=80=81=E5=A4=B1=E8=B4=A5=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sendNotify.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sendNotify.js b/sendNotify.js index 742bd37b..844572cd 100644 --- a/sendNotify.js +++ b/sendNotify.js @@ -201,6 +201,12 @@ function CoolPush(text, desp) { } } + // 已知敏感词 + text = text.replace(/京豆/g, "豆豆"); + desp = desp.replace(/京豆/g, ""); + desp = desp.replace(/🐶/g, ""); + desp = desp.replace(/红包/g, "H包"); + switch (QQ_MODE) { case "email": options.json = { @@ -240,8 +246,10 @@ function CoolPush(text, desp) { console.log(`酷推发送${pushMode(QQ_MODE)}通知消息成功\n`) } else if (data.code === 400) { console.log(`QQ酷推(Cool Push)发送${pushMode(QQ_MODE)}推送失败:${data.msg}\n`) + } else if (data.code === 503) { + console.log(`QQ酷推出错,${data.message}:${data.data}\n`) }else{ - console.log(`酷推推送异常: ${data.msg}`); + console.log(`酷推推送异常: ${JSON.stringify(data)}`); } } } catch (e) {