Comments (5)
https://github.com/whyour/qinglong/blob/develop/sample/notify.js 不知道你的场景是怎样的,可以试试
from qinglong.
https://github.com/whyour/qinglong/blob/develop/sample/notify.js 不知道你的场景是怎样的,可以试试
OK,大佬,试了一下JD订阅和福利库,内容都正常了,无论是form类型还是json形式请求都可以了。
以下是我的config填写,给后面使用的朋友们一个参考:
## 14. 自定义推送 export WEBHOOK_URL="API URL" export WEBHOOK_HEADERS="" export WEBHOOK_BODY='title:$title text:$content' export WEBHOOK_METHOD="POST" export WEBHOOK_CONTENT_TYPE="application/json"
注意无论是multipart/form-data还是application/json Body内容多个字段,均要用换行符换行,字符串转义的
\n
是不可以的,会被程序再次转义不可用,要真正的换行。如我上面那样。
变量中的换行可以直接换行,或者使用 $'\n' 拼接两行字符串,比如
export WEBHOOK_BODY="title:$title"$'\n'"text:$content"
from qinglong.
https://github.com/whyour/qinglong/blob/develop/sample/notify.js 不知道你的场景是怎样的,可以试试
OK,大佬,试了一下JD订阅和福利库,内容都正常了,无论是form类型还是json形式请求都可以了。
以下是我的config填写,给后面使用的朋友们一个参考:
## 14. 自定义推送 export WEBHOOK_URL="API URL" export WEBHOOK_HEADERS="" export WEBHOOK_BODY='title:$title text:$content' export WEBHOOK_METHOD="POST" export WEBHOOK_CONTENT_TYPE="application/json"
注意无论是multipart/form-data还是application/json Body内容多个字段,均要用换行符换行,字符串转义的\n
是不可以的,会被程序再次转义不可用,要真正的换行。如我上面那样。
from qinglong.
https://github.com/whyour/qinglong/blob/develop/sample/notify.js 不知道你的场景是怎样的,可以试试
OK,大佬,试了一下JD订阅和福利库,内容都正常了,无论是form类型还是json形式请求都可以了。
以下是我的config填写,给后面使用的朋友们一个参考:## 14. 自定义推送 export WEBHOOK_URL="API URL" export WEBHOOK_HEADERS="" export WEBHOOK_BODY='title:$title text:$content' export WEBHOOK_METHOD="POST" export WEBHOOK_CONTENT_TYPE="application/json"
注意无论是multipart/form-data还是application/json Body内容多个字段,均要用换行符换行,字符串转义的\n
是不可以的,会被程序再次转义不可用,要真正的换行。如我上面那样。变量中的换行可以直接换行,或者使用 $'\n' 拼接两行字符串,比如
export WEBHOOK_BODY="title:$title"$'\n'"text:$content"
嗯嗯,谢谢大佬。坐等下次发版
from qinglong.
2.17.3 已修复
from qinglong.
Related Issues (20)
- 正式版 v2.17.3 telegram通知没了,不能设置 HOT 2
- 2.17.4 window docker 自动更新更新失败 无法更新 HOT 1
- 新版本无法用host模式进入面板 HOT 1
- 环境变量里,不同变量名的分隔符支持自定义
- 视图只能展示三个吗? HOT 5
- 新安装的青龙,过一会设置选项里面无论设置哪个选项都会出现WHERE parameter "type" has invalid "undefined" value HOT 7
- telegram机器人无法设定 HOT 2
- 飞书机器人配置无法写入环境变量 HOT 1
- bark通知 barkGroup 选项无效 HOT 1
- 标签的意义完全失去了
- 一段时间后就会报错不运行 HOT 4
- 查看定时任务的脚本内容出错 HOT 1
- bark通知一直出错 HOT 1
- 脚本管理中的调试功能无法输出执行信息 HOT 6
- 面板内python运行selenium库会报错,直接docker内运行则正常 HOT 1
- 打开青龙面板只显示空白页面,重装都没用,请问是什么原因导致的呢? HOT 2
- 定时任务模块“日志”功能失效 HOT 3
- 填加了一个单个脚本的订阅然后卡死了
- 一个任务重复执行3次 HOT 1
- 服务器资源异常警告 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qinglong.