浏览代码

登录地址去掉省

wyyay 2 年之前
父节点
当前提交
dadd565465
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      base-common/src/main/java/com/ozs/common/utils/ip/AddressUtils.java

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

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