| | |
| | | * @throws Exception |
| | | */ |
| | | public static String informWebHook(String webHook, String content) { |
| | | // JSONObject jsonObject = new JSONObject() |
| | | // .accumulate("msgtype", "text") |
| | | // .accumulate("text", new JSONObject() |
| | | // .accumulate("content", content)); |
| | | // return HttpRequest.post(webHook).header("Content-Type", "application/json").body(jsonObject.toString()).execute().body(); |
| | | return null; |
| | | JSONObject jsonObject = new JSONObject() |
| | | .accumulate("msgtype", "text") |
| | | .accumulate("text", new JSONObject() |
| | | .accumulate("content", content)); |
| | | return HttpRequest.post(webHook).header("Content-Type", "application/json").body(jsonObject.toString()).execute().body(); |
| | | } |
| | | |
| | | public static String getMd5(File file) { |