更换IP地址查询接口

This commit is contained in:
RuoYi
2020-05-13 21:16:15 +08:00
parent 7190516a27
commit 1af0fef99e
2 changed files with 18 additions and 18 deletions

View File

@ -49,7 +49,7 @@ public class HttpUtils
connection.setRequestProperty("connection", "Keep-Alive");
connection.setRequestProperty("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)");
connection.connect();
in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
in = new BufferedReader(new InputStreamReader(connection.getInputStream(), "GBK"));
String line;
while ((line = in.readLine()) != null)
{