Explorar el Código

登录地址去掉省

wyyay hace 2 años
padre
commit
e5a44770a3

+ 2 - 2
base-common/src/main/java/com/ozs/common/utils/ip/AddressUtils.java

@@ -42,9 +42,9 @@ public class AddressUtils
                     return UNKNOWN;
                 }
                 JSONObject obj = JSON.parseObject(rspStr);
-                String region = obj.getString("pro");
+                //String region = obj.getString("pro");
                 String city = obj.getString("city");
-                return String.format("%s %s", region, city);
+                return String.format("%s %s", city);
             }
             catch (Exception e)
             {