pushDeer支持自架版

This commit is contained in:
whyour
2022-11-20 20:05:02 +08:00
parent 8b8336d9d0
commit 6f185570d6
7 changed files with 24 additions and 7 deletions
+2 -2
View File
@@ -123,8 +123,8 @@ export default class NotificationService {
}
private async pushDeer() {
const { pushDeerKey } = this.params;
const url = `https://api2.pushdeer.com/message/push`;
const { pushDeerKey, pushDeerUrl } = this.params;
const url = pushDeerUrl || `https://api2.pushdeer.com/message/push`;
const res: any = await got
.post(url, {
...this.gotOption,