diff --git a/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/GdBankController.java b/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/GdBankController.java index 046bc4e6e..efc4cb12b 100644 --- a/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/GdBankController.java +++ b/projects/fangjia-open/src/main/java/com/fangjia/open/controllers/GdBankController.java @@ -89,9 +89,9 @@ public class GdBankController { if (json.containsKey("result")) { //我们的结果 JSONObject result = json.getJSONObject("result"); - if (("是").equals(result.get("countyLevelCity"))){ + if (("是").equals(result.get("countyLevelCity"))) { result.put("prefectureLevelCity", "否"); - } else if(("否").equals(result.get("countyLevelCity"))){ + } else if (("否").equals(result.get("countyLevelCity"))) { result.put("prefectureLevelCity", "是"); } //我们省级及以上有开发区,直接用我们的结果 @@ -116,13 +116,15 @@ public class GdBankController { basicModel.setResult(result); } } else { - if (("是").equals(result.get("countyLevelCity"))){ + if (("是").equals(result.get("countyLevelCity"))) { map.put("prefectureLevelCity", "否"); - } else if(("否").equals(result.get("countyLevelCity"))){ + } else if (("否").equals(result.get("countyLevelCity"))) { map.put("prefectureLevelCity", "是"); } map.put("addrVerify", "地址有效"); - map.put("countyLevelCity",result.getString("countyLevelCity")); + if (result.containsKey("countyLevelCity")) { + map.put("countyLevelCity", result.getString("countyLevelCity")); + } map.put("typeName", areaMap.get(map.get("typeCode"))); basicModel.setResult(map); } @@ -142,13 +144,6 @@ public class GdBankController { } } - - - - - - - basicModel.setResult(result); } mav.setModel(basicModel); } else {