This commit is contained in:
Yutousama 2020-05-28 00:46:07 +08:00
parent d247235ca5
commit ec0e94feec

View File

@ -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();