Update sendNotify.js

This commit is contained in:
smallfawn
2023-07-11 19:10:15 +08:00
committed by GitHub
parent 489da243ab
commit 6ad86c9142

View File

@@ -250,7 +250,7 @@ async function sendNotify(
if (type !== pushType[2]) { if (type !== pushType[2]) {
//判断数组长度 //判断数组长度
if (checkSmallfawnPush(process.env[type]).length == 0) { if (checkSmallfawnPush(process.env[type]).length == 0) {
console.log(`通知变量[${type}] 无变量值 默认形式发送 脚本名字[${text}] 如果需要请填写脚本名字到通知变量 @或&或#为 分隔符`); console.log(`通知变量[${type}] 无变量值 默认形式发送 脚本名字[${text}]\n如果需要请填写脚本名字到通知变量 @或&或#为 分隔符`);
await push() await push()
} else { } else {
//判断黑白名单模式 //判断黑白名单模式
@@ -274,7 +274,7 @@ async function sendNotify(
} }
} else { } else {
console.log(`无黑白名单变量 默认形式发送 脚本名字[${text}]`); console.log(`无黑白名单变量 默认形式发送 脚本名字[${text}]`);
console.log(`如需配置通知黑白名单请在env或配置文件 添加白名单 ${pushType[0]} 或 黑名单 ${pushType[1]} 二选一 @或&或#为 分隔符 填写脚本名字`); console.log(`如需配置通知黑白名单请在环境变量或配置文件 添加变量白名单 ${pushType[0]} 或 黑名单 ${pushType[1]}二选一 @或&或#为 分隔符 填写脚本名字`);
await push() await push()
} }