Commit 1a0dbc2b authored by 张艳玲's avatar 张艳玲

修改钉钉推送

parent 81bad166
...@@ -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) {
......
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