修复通知文件一言设置

This commit is contained in:
whyour
2024-06-16 00:28:45 +08:00
parent 7d0cae7839
commit 035f0eb9e3
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -97,7 +97,6 @@ const push_config = {
WEBHOOK_CONTENT_TYPE: '', // 自定义通知 content-type
};
// 首先读取 面板变量 或者 github action 运行变量
for (const key in push_config) {
const v = process.env[key];
if (v) {
@@ -1290,7 +1289,7 @@ async function sendNotify(text, desp, params = {}) {
}
}
if (push_config.HITOKOTO) {
if (push_config.HITOKOTO !== 'false') {
desp += '\n\n' + (await one());
}