修复断网时出现获取地点错误Bug,改成友好提示。

master
yangzhengze 7 years ago committed by Limy
parent 7d71b0aafd
commit 8d266f72bf

@ -62,7 +62,8 @@ public class AddressUtils {
reader.close();
return buffer.toString();
} catch (IOException e) {
e.printStackTrace();
System.out.println("温馨提醒:您的主机已经断网,请您检查主机的网络连接");
System.out.println("根据IP获取所在位置----------错误消息:"+e.getMessage());
} finally {
if (connection != null) {
connection.disconnect();

Loading…
Cancel
Save