소스 검색

登录地址去掉省

wyyay 2 년 전
부모
커밋
e5a44770a3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      base-common/src/main/java/com/ozs/common/utils/ip/AddressUtils.java

+ 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)
             {