Skip to content

Commit b71e489

Browse files
authored
✨ feat: 增加bark通知选项(点击bark通知可跳转到响应页面) (#339)
1 parent a51de7f commit b71e489

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/function/twikoo/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,12 @@ async function noticePushoo (comment) {
989989
const sendResult = await pushoo(config.PUSHOO_CHANNEL, {
990990
token: config.PUSHOO_TOKEN,
991991
title: pushContent.subject,
992-
content: pushContent.content
992+
content: pushContent.content,
993+
options: {
994+
bark: {
995+
url: pushContent.POST_URL
996+
}
997+
}
993998
})
994999
console.log('即时消息通知结果:', sendResult)
9951000
}
@@ -1013,7 +1018,8 @@ function getIMPushContent (comment) {
10131018
原文链接:[${POST_URL}](${POST_URL})`
10141019
return {
10151020
subject,
1016-
content
1021+
content,
1022+
POST_URL
10171023
}
10181024
}
10191025

src/function/twikoo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twikoo-func",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "A simple comment system based on Tencent CloudBase (tcb).",
55
"author": "imaegoo <hello@imaegoo.com> (https://github.com/imaegoo)",
66
"license": "MIT",

0 commit comments

Comments
 (0)