feat: add baihu notify -- fix python call

This commit is contained in:
duorameng
2026-04-16 22:02:02 +08:00
parent 58655ae779
commit 687e7d57c7
5 changed files with 18 additions and 11 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ function notify(title, text, channelId) {
if (!notifyUrl || !TOKEN || !cid) return;
try {
const parsedUrl = new URL(notifyUrl);
const protocol = parsedUrl.protocol === 'https:' ? https : http;
@@ -51,7 +51,7 @@ function notify(title, text, channelId) {
req.on('error', (e) => {});
req.write(data);
req.end();
} catch (e) {}
}
module.exports = { notify };