mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-01 04:40:38 +08:00
PushMe 通知支持自建服务 (#2358)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user