Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oto
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
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
龚小红
oto
Commits
1a0dbc2b
Commit
1a0dbc2b
authored
Mar 04, 2021
by
张艳玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改钉钉推送
parent
81bad166
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
DingTalkUtils.java
src/test/java/com/kjj/utils/DingTalkUtils.java
+2
-2
No files found.
src/test/java/com/kjj/utils/DingTalkUtils.java
View file @
1a0dbc2b
...
@@ -41,7 +41,7 @@ public class DingTalkUtils {
...
@@ -41,7 +41,7 @@ public class DingTalkUtils {
contentParams
.
put
(
"content"
,
"【测试结果】\n"
+
errorMessage
);
contentParams
.
put
(
"content"
,
"【测试结果】\n"
+
errorMessage
);
//钉钉机器人消息体
//钉钉机器人消息体
Map
<
String
,
Object
>
params
=
new
HashMap
<
String
,
Object
>();
/*
Map<String, Object> params = new HashMap<String, Object>();
params.put("msgtype","text");
params.put("msgtype","text");
params.put("text",contentParams);
params.put("text",contentParams);
System.out.println(params);
System.out.println(params);
...
@@ -50,7 +50,7 @@ public class DingTalkUtils {
...
@@ -50,7 +50,7 @@ public class DingTalkUtils {
if (isPushReport){
if (isPushReport){
Response response = network.dingTalkRobot(params);
Response response = network.dingTalkRobot(params);
response.body().prettyPrint();
response.body().prettyPrint();
}
}
*/
}
}
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
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