mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
消息通知 Bark 增加额外参数:时效性通知、跳转Url (#2112)
This commit is contained in:
1 parent
acc7443004
commit
aab096843c
7 files changed
+31
-3
No files matched your search
@@ -195,7 +195,7 @@ export default class NotificationService {
|
||||
}
|
||||
|
||||
private async bark() {
|
||||
let { barkPush, barkIcon, barkSound, barkGroup } = this.params;
|
||||
let { barkPush, barkIcon, barkSound, barkGroup, barkLevel, barkUrl } = this.params;
|
||||
if (!barkPush.startsWith('http')) {
|
||||
barkPush = `https://api.day.app/${barkPush}`;
|
||||
}
|
||||
@@ -203,7 +203,7 @@ export default class NotificationService {
|
||||
this.title,
|
||||
)}/${encodeURIComponent(
|
||||
this.content,
|
||||
)}?icon=${barkIcon}&sound=${barkSound}&group=${barkGroup}`;
|
||||
)}?icon=${barkIcon}&sound=${barkSound}&group=${barkGroup}&level=${barkLevel}&url=${barkUrl}`;
|
||||
|
||||
try {
|
||||
const res: any = await got
|
||||
|
||||
Reference in new issue
Block a user