Update sendNotify.js

修正pushdeer推送通道中markdown格式问题
This commit is contained in:
milletbig 2023-06-13 20:44:04 +08:00 committed by GitHub
parent 65239137f5
commit 602551691b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1968,7 +1968,7 @@ function PushDeerNotify(text, desp) {
desp = desp.replace(/%0A/g, '%0A%0A');
const options = {
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: {
'Content-Type': 'application/x-www-form-urlencoded',
},