Commit 5b322443 authored by liuchao1's avatar liuchao1

控制报告只钉钉推送一次

parent 91ac0a80
......@@ -16,7 +16,6 @@ public class DingTalkUtils {
public static void sendVal(String context)throws Exception{
if (!hasSend.compareAndSet(true, false)){
System.out.println("已经推送一次报告了");
return;
}
......@@ -37,8 +36,8 @@ public class DingTalkUtils {
//发起dingding机器人通知
if (isPushReport){
// Response response = network.dingTalkRobot(params);
// System.out.println("钉钉 response:"+response.asString());
Response response = network.dingTalkRobot(params);
System.out.println("钉钉 response:"+response.asString());
}
}
......
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 to comment