whyour / qinglong

支持 Python3、JavaScript、Shell、Typescript 的定时任务管理平台(Timed task management platform supporting Python3, JavaScript, Shell, Typescript)
https://qinglong.online
Apache License 2.0
16.36k stars 2.98k forks source link

一言添加的换行,会导致自定义通知内的json解析失败 #2494

Closed wzn556 closed 2 months ago

wzn556 commented 2 months ago

Qinglong version

2.17.10

Steps to reproduce

自定义通知时,键值对的值为json对象,即可复现。例如export WEBHOOK_BODY='data:{"data":{"body":"$content","group":"青龙","title":"$title"},"priority":"normal","to":"123456","ttl":"86400"}'

What is expected?

加转义变为\\n\\n可解决,不确定对其他通知方式是否有影响

What is actually happening?

sendNotify.js: image notify.py image

System Info

No response

Any additional comments?

No response

whyour commented 2 months ago

2.17.11 已修复