Skip to content

Commit

Permalink
使企业微信机器人推送的消息中的工单地址支持超链接
Browse files Browse the repository at this point in the history
  • Loading branch information
johnliu2008 authored and hhyo committed Oct 25, 2020
1 parent 01a3d70 commit ce2d805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/utils/sendmsg.py
Expand Up @@ -191,7 +191,7 @@ def send_qywx_webhook(self,qywx_webhook, msg):
data = {
"msgtype": "markdown",
"markdown": {
"content": msg
"content": msg.replace('工单地址:', '工单地址:[请点击链接](').replace('\n工单详情预览:', ')\n工单详情预览:')
},
}
res = requests.post(url=send_url, json=data, timeout=5)
Expand Down

0 comments on commit ce2d805

Please sign in to comment.