PushMe 通知支持自建服务 (#2358)

This commit is contained in:
雨思
2024-05-15 22:38:25 +08:00
committed by GitHub
parent 0b52e05af8
commit 8dd379b6b9
8 changed files with 22 additions and 7 deletions
+3 -3
View File
@@ -935,11 +935,11 @@ async function smtpNotify(text, desp) {
function pushMeNotify(text, desp, params = {}) {
return new Promise((resolve) => {
const { PUSHME_KEY } = push_config;
const { PUSHME_KEY, PUSHME_URL } = push_config;
if (PUSHME_KEY) {
const options = {
url: `https://push.i-i.me?push_key=${PUSHME_KEY}`,
json: { title: text, content: desp, ...params },
url: PUSHME_URL || 'https://push.i-i.me',
json: { push_key: PUSHME_KEY, title: text, content: desp, ...params },
headers: {
'Content-Type': 'application/json',
},