修正 QQ 推送敏感词过滤及消息发送失败的提示
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user