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

This commit is contained in:
雨思 authored and GitHub committed 2024-05-15 22:38:25 +08:00
1 parent 0b52e05af8
commit 8dd379b6b9
8 files changed
+22 -7

No files matched your search

+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,
},