From ec0e94feec9774f5c6022b4100abe4fd5b69defe Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Thu, 28 May 2020 00:46:07 +0800 Subject: [PATCH] update --- src/main/java/com/yutou/tools/utils/Tools.java | 4 ++++ 1 file changed, 4 insertions(+) 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();