Commit 6a2e290c authored by 刘丙寅's avatar 刘丙寅

项目停止运行

parent cb1a8cd8
......@@ -36,25 +36,25 @@ def test():
# 钉钉报警
dd_url = "https://oapi.dingtalk.com/robot/send?access_token=062ab7f98f47c85e6c200efd21ae5d532e4f1bbfd6782ae1268b9a1f4d3dc7b9"
text = "明日开始休息:本次值班人员为:%s 值班人员记得带 电脑,手机, vpn环境" % {message}
json_text = {
"msgtype": "text",
"at": {
"atMobiles": [
"all"
],
# 变为true 就会@所有人
"isAtAll": True
},
"text": {
"content": text
}
}
requests.post(url=dd_url, json=json_text, verify=False)
# # 钉钉报警
# dd_url = "https://oapi.dingtalk.com/robot/send?access_token=062ab7f98f47c85e6c200efd21ae5d532e4f1bbfd6782ae1268b9a1f4d3dc7b9"
# text = "明日开始休息:本次值班人员为:%s 值班人员记得带 电脑,手机, vpn环境" % {message}
# json_text = {
# "msgtype": "text",
# "at": {
# "atMobiles": [
#
# "all"
# ],
# # 变为true 就会@所有人
# "isAtAll": True
# },
# "text": {
# "content": text
# }
# }
#
# requests.post(url=dd_url, json=json_text, verify=False)
......
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