mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
修复通知文件一言设置
This commit is contained in:
+1
-2
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user