diff --git a/src/main/java/com/yutou/tools/utils/Tools.java b/src/main/java/com/yutou/tools/utils/Tools.java index ec24398..322ace4 100644 --- a/src/main/java/com/yutou/tools/utils/Tools.java +++ b/src/main/java/com/yutou/tools/utils/Tools.java @@ -93,6 +93,10 @@ public class Tools { if (UpdateIp.nas_ip != null) { connection = (HttpURLConnection) new URL("http://" + UpdateIp.nas_ip + ":8000/localhome/bot/send.do?msg=" + URLEncoder.encode((title + "\n" + msg), "UTF-8") + "&token=zIrsh9TUZP2lfRW753PannG49E7VJvor").openConnection(); connection.connect(); + inputStream=connection.getInputStream(); + i=inputStream.read(); + inputStream.close(); + connection.disconnect(); } } catch (Exception e) { e.printStackTrace();