Commit 2d8a3116 by 陈森彬

update

parent 05c756a0
Showing with 2 additions and 1 deletions
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding:utf-8 -*- # -*- coding:utf-8 -*-
import time
import requests import requests
dd_robot_api = ' https://oapi.dingtalk.com/robot/send?access_token=' dd_robot_api = ' https://oapi.dingtalk.com/robot/send?access_token='
...@@ -15,6 +15,7 @@ def dd_send_msg(msg, robot=tom): ...@@ -15,6 +15,7 @@ def dd_send_msg(msg, robot=tom):
} }
} }
requests.post(dd_robot_api + robot, json=data) requests.post(dd_robot_api + robot, json=data)
time.sleep(5)
if __name__ == "__main__": if __name__ == "__main__":
......
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 sign in to comment