Closed mikoshu closed 5 months ago
v2.17.7
自定义webhook时获取配置的process.env获取到的WEBHOOK_BODY参数中$title和$content会被替换为空导致无法发送通知 如配置为 "title:$title"在sendNotify中打印出来结果为"title:"导致脚本直接resolve###
如在配置文件中配置WEBHOOK_BODY为 "title:$title"在notify.js中通过process.env['WEBHOOK_BODY']获取出来结果应该也为为"title:$title"才能进行文本替换
当前获取的结果为"title:" $title文本被替换为空导致通知脚本无法继续
No response
参考:https://github.com/whyour/qinglong/issues/2303 变量声明要用单引号
export WEBHOOK_BODY='title:$title'$'\n''text:$content'
Qinglong version
v2.17.7
Steps to reproduce
自定义webhook时获取配置的process.env获取到的WEBHOOK_BODY参数中$title和$content会被替换为空导致无法发送通知 如配置为 "title:$title"在sendNotify中打印出来结果为"title:"导致脚本直接resolve###
What is expected?
如在配置文件中配置WEBHOOK_BODY为 "title:$title"在notify.js中通过process.env['WEBHOOK_BODY']获取出来结果应该也为为"title:$title"才能进行文本替换
What is actually happening?
当前获取的结果为"title:" $title文本被替换为空导致通知脚本无法继续
System Info
No response
Any additional comments?
No response