add dingding channel

This commit is contained in:
wujiyu115
2023-03-29 10:05:08 +08:00
parent 2fe283d304
commit 2f0fc37012
6 changed files with 146 additions and 1 deletions

View File

@@ -492,6 +492,35 @@ pip3 install PyJWT flask
服务器运行:部署后访问 `http://公网域名或IP:端口`
### 10.钉钉
**依赖**
```bash
pip3 install requests flask
```
**配置**
```bash
"channel": {
"type": "dingding",
"dingding": {
"image_create_prefix": ["画", "draw", "Draw"],
"port": "8081", //对外端口
"dd_token": "xx", //webhook地址的access_token
"dd_post_token": "xx", //钉钉post回消息时header中带的检验token
"dd_secret": "xx"// 安全加密加签串,群机器人中
}
}
```
钉钉开放平台说明: https://open.dingtalk.com/document/robots/customize-robot-security-settin.dingtalk.com/robot/send?access_token=906dadcbc7750fef5ff60d3445b66d5bbca32804f40fbdb59039a29b20b9a3f0gs
https://open.dingtalk.com/document/orgapp/custom-robot-access
**生成机器人**
地址: https://open-dev.dingtalk.com/fe/app#/corp/robot
添加机器人,在开发管理中设置服务器出口ip(在部署机执行curl ifconfig.me就可以得到)和消息接收地址(配置中的对外地址如 https://xx.xx.com:8081)
### 通用配置