Update notify.js

修正pushdeer推送中,markdown格式显示问题
This commit is contained in:
milletbig 2023-06-16 12:26:17 +08:00 committed by GitHub
parent 9f4435b237
commit 88b5444b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -465,7 +465,7 @@ function PushDeerNotify(text, desp) {
desp = encodeURI(desp); desp = encodeURI(desp);
const options = { const options = {
url: PUSHDEER_URL || `https://api2.pushdeer.com/message/push`, url: PUSHDEER_URL || `https://api2.pushdeer.com/message/push`,
body: `pushkey=${PUSHDEER_KEY}&text=${text}&desp=${desp}&type=markdown`, body: `pushkey=${PUSHDEER_KEY}&text=${text}&desp=${desp}&type="markdown"`,
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded', 'Content-Type': 'application/x-www-form-urlencoded',
}, },