未验证 提交 39bc74f2 编写于 作者: 然后七年 提交者: GitHub

优化飞书推送效果

改为卡片推送模式,以支持简单markdown
上级 2d8f5fc6
......@@ -5,8 +5,8 @@
"url": "https://open.feishu.cn/open-apis/bot/v2/hook/${fs_webhook}",
"data": "@${tempjsonpath}",
"content_type": "Content-Type: application/json",
"str_title_start": "",
"str_title_end": "",
"str_title_start": "**",
"str_title_end": "**",
"str_linefeed": "\\n",
"str_splitline": "\\n\\n",
"str_space": " ",
......@@ -19,23 +19,42 @@
"font_end": "",
"font_end": "",
"percentsym": "",
"boldstar": "",
"boldstar": "**",
"type":
{
"msg_type": "\"post\"",
"content": {
"post": {
"zh_cn": {
"title": "\"${1}\"",
"content": [
[{
"tag": "\"text\"",
"text": "\"${nowtime}${str_linefeed}${2}\""
}
]
]
"msg_type": "\"interactive\"",
"card": {
"config": {
"wide_screen_mode": "true"
},
"header": {
"template": "\"purple\"",
"title": {
"content": "\"${1}\"",
"tag": "\"plain_text\""
}
},
"elements": [
{
"tag": "\"div\"",
"text": {
"content": "\"${nowtime}${str_linefeed}${2}\"",
"tag": "\"lark_md\""
}
},
{
"tag": "\"hr\""
},
{
"elements": [
{
"content": "\"来自${device_name}\"",
"tag": "\"lark_md\""
}
],
"tag": "\"note\""
}
]
}
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册