mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-07 11:56:08 +08:00
修复 js 下 bark 推送声音 bug (#1847)
This commit is contained in:
parent
73c53dbc8d
commit
3a3b945de8
|
@ -296,7 +296,7 @@ async function sendNotify(
|
||||||
) {
|
) {
|
||||||
//提供6种通知
|
//提供6种通知
|
||||||
desp += author; //增加作者信息,防止被贩卖等
|
desp += author; //增加作者信息,防止被贩卖等
|
||||||
|
|
||||||
// 根据标题跳过一些消息推送,环境变量:SKIP_PUSH_TITLE 用回车分隔
|
// 根据标题跳过一些消息推送,环境变量:SKIP_PUSH_TITLE 用回车分隔
|
||||||
let skipTitle = process.env.SKIP_PUSH_TITLE
|
let skipTitle = process.env.SKIP_PUSH_TITLE
|
||||||
if(skipTitle) {
|
if(skipTitle) {
|
||||||
|
@ -533,7 +533,7 @@ function BarkNotify(text, desp, params = {}) {
|
||||||
const options = {
|
const options = {
|
||||||
url: `${BARK_PUSH}/${encodeURIComponent(text)}/${encodeURIComponent(
|
url: `${BARK_PUSH}/${encodeURIComponent(text)}/${encodeURIComponent(
|
||||||
desp,
|
desp,
|
||||||
)}?icon=${BARK_ICON}?sound=${BARK_SOUND}&group=${BARK_GROUP}&${querystring.stringify(
|
)}?icon=${BARK_ICON}&sound=${BARK_SOUND}&group=${BARK_GROUP}&${querystring.stringify(
|
||||||
params,
|
params,
|
||||||
)}`,
|
)}`,
|
||||||
headers: {
|
headers: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user