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
5b322443
Commit
5b322443
authored
Mar 04, 2021
by
liuchao1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
控制报告只钉钉推送一次
parent
91ac0a80
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
DingTalkUtils.java
src/test/java/com/kjj/utils/DingTalkUtils.java
+2
-3
No files found.
src/test/java/com/kjj/utils/DingTalkUtils.java
View file @
5b322443
...
@@ -16,7 +16,6 @@ public class DingTalkUtils {
...
@@ -16,7 +16,6 @@ public class DingTalkUtils {
public
static
void
sendVal
(
String
context
)
throws
Exception
{
public
static
void
sendVal
(
String
context
)
throws
Exception
{
if
(!
hasSend
.
compareAndSet
(
true
,
false
)){
if
(!
hasSend
.
compareAndSet
(
true
,
false
)){
System
.
out
.
println
(
"已经推送一次报告了"
);
return
;
return
;
}
}
...
@@ -37,8 +36,8 @@ public class DingTalkUtils {
...
@@ -37,8 +36,8 @@ public class DingTalkUtils {
//发起dingding机器人通知
//发起dingding机器人通知
if
(
isPushReport
){
if
(
isPushReport
){
//
Response response = network.dingTalkRobot(params);
Response
response
=
network
.
dingTalkRobot
(
params
);
//
System.out.println("钉钉 response:"+response.asString());
System
.
out
.
println
(
"钉钉 response:"
+
response
.
asString
());
}
}
}
}
...
...
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