Commit bd02211c by taoke

优化

parent c815fb9f
...@@ -94,7 +94,7 @@ def dingTalk_markdown_bmy(group): ...@@ -94,7 +94,7 @@ def dingTalk_markdown_bmy(group):
def dingTalk_markdown_safe_transportation(group): def dingTalk_markdown_safe_transportation(group):
for i in group: for i in group:
"""发送消息到钉钉群(企业云)""" """发送消息到钉钉群(交委)"""
timestamp = str(round(time.time() * 1000)) timestamp = str(round(time.time() * 1000))
sign=get_sign(i["secret"]) sign=get_sign(i["secret"])
webhook=i["webhook"]+f"&timestamp={timestamp}&sign={sign}" webhook=i["webhook"]+f"&timestamp={timestamp}&sign={sign}"
...@@ -103,7 +103,7 @@ def dingTalk_markdown_safe_transportation(group): ...@@ -103,7 +103,7 @@ def dingTalk_markdown_safe_transportation(group):
"markdown": { "markdown": {
"title":"接口执行报告", "title":"接口执行报告",
"text": f"#### 接口自动化测试报告 \n> 本消息由Jenkins构建后自动发送\n> \ "text": f"#### 接口自动化测试报告 \n> 本消息由Jenkins构建后自动发送\n> \
![screenshot](https://aqjg.gyszhjt.com:60028/img/group1/M00/00/04/Cgs5XWD2NrOACeeHAAhEU1jS9Xc475.png)\n> ###### 点击查看 >> [安全运输呀](http://10.197.236.10:8080/job/safe_transportation/allure/) \n" ![screenshot](https://img.banmago.com/group2/M00/06/BB/rBrpX2ElvEmAI3RiAByV_qWqv98549.png)\n> ###### 点击查看 >> [安全运输呀](http://10.197.236.10:8080/job/safe_transportation/allure/) \n"
}, },
'at': {'isAtAll': False}} 'at': {'isAtAll': False}}
post_data = json.dumps(data) post_data = json.dumps(data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment