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 -2
View File
@@ -573,13 +573,14 @@ export default class NotificationService {
}
private async pushMe() {
const { pushMeKey } = this.params;
const { pushMeKey, pushMeUrl } = this.params;
try {
const res: any = await got.post(
`https://push.i-i.me/?push_key=${pushMeKey}`,
pushMeUrl || 'https://push.i-i.me/',
{
...this.gotOption,
json: {
push_key: pushMeKey,
title: this.title,
content: this.content,
},