Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
钉
钉钉群通知
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
yaozheng
钉钉群通知
Commits
a850fe8d
Commit
a850fe8d
authored
Oct 30, 2020
by
yz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加@所有人
parent
8ace3765
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
sendMessage.py
sendMessage.py
+5
-3
No files found.
sendMessage.py
View file @
a850fe8d
...
...
@@ -31,7 +31,9 @@ class DDMessage:
"text"
:
{
"content"
:
message
},
"isAtAll"
:
True
"at"
:{
"isAtAll"
:
True
}
}
r
=
requests
.
post
(
url
=
url
,
data
=
json
.
dumps
(
message
),
headers
=
headers
)
.
json
()
print
(
r
)
...
...
@@ -52,8 +54,8 @@ content2 = "bug请及时上报jira并更新状态:http://jira.dui88.com"
content3
=
"业务文档请及时更新:http://cf.dui88.com/pages/viewpage.action?pageId=78912619"
# 发送信息
DDMessage
.
send_message
(
fullUrl
,
content1
)
DDMessage
.
send_message
(
fullUrl
,
content2
)
DDMessage
.
send_message
(
fullUrl
,
content3
)
#
DDMessage.send_message(fullUrl,content2)
#
DDMessage.send_message(fullUrl,content3)
...
...
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