Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
rota
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘丙寅
rota
Commits
6a2e290c
Commit
6a2e290c
authored
Oct 22, 2021
by
刘丙寅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目停止运行
parent
cb1a8cd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
+19
-19
rota_gm.py
rota_gm.py
+19
-19
No files found.
rota_gm.py
View file @
6a2e290c
...
@@ -36,25 +36,25 @@ def test():
...
@@ -36,25 +36,25 @@ def test():
# 钉钉报警
#
#
钉钉报警
dd_url
=
"https://oapi.dingtalk.com/robot/send?access_token=062ab7f98f47c85e6c200efd21ae5d532e4f1bbfd6782ae1268b9a1f4d3dc7b9"
#
dd_url = "https://oapi.dingtalk.com/robot/send?access_token=062ab7f98f47c85e6c200efd21ae5d532e4f1bbfd6782ae1268b9a1f4d3dc7b9"
text
=
"明日开始休息:本次值班人员为:
%
s 值班人员记得带 电脑,手机, vpn环境"
%
{
message
}
#
text = "明日开始休息:本次值班人员为:%s 值班人员记得带 电脑,手机, vpn环境" % {message}
json_text
=
{
#
json_text = {
"msgtype"
:
"text"
,
#
"msgtype": "text",
"at"
:
{
#
"at": {
"atMobiles"
:
[
#
"atMobiles": [
#
"all"
#
"all"
],
#
],
# 变为true 就会@所有人
#
# 变为true 就会@所有人
"isAtAll"
:
True
#
"isAtAll": True
},
#
},
"text"
:
{
#
"text": {
"content"
:
text
#
"content": text
}
#
}
}
#
}
#
requests
.
post
(
url
=
dd_url
,
json
=
json_text
,
verify
=
False
)
#
requests.post(url=dd_url, json=json_text, verify=False)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment