From 1006ed84660edfabbb5273a523e0c3c5af20a387 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 03 九月 2021 00:29:59 +0800
Subject: [PATCH] 优化代码

---
 java110-core/src/main/java/com/java110/core/component/BaseComponentSMO.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/java110-core/src/main/java/com/java110/core/component/BaseComponentSMO.java b/java110-core/src/main/java/com/java110/core/component/BaseComponentSMO.java
old mode 100644
new mode 100755
index e2f6e06..438ada6
--- a/java110-core/src/main/java/com/java110/core/component/BaseComponentSMO.java
+++ b/java110-core/src/main/java/com/java110/core/component/BaseComponentSMO.java
@@ -68,8 +68,8 @@
             responseEntity = new ResponseEntity<String>("璋冪敤缁勪欢" + componentCode + ",缁勪欢鏂规硶" + componentMethod + "澶辫触锛�" + e.getMessage(),
                     HttpStatus.INTERNAL_SERVER_ERROR);
         } finally {
-            return responseEntity;
         }
+        return responseEntity;
     }
 
 
@@ -186,11 +186,11 @@
             throw new SMOException(ResponseConstant.RESULT_CODE_ERROR, "杩樻湭鍏ラ┗灏忓尯锛岃鍏堝叆椹诲皬鍖�");
         }
 
-        Assert.jsonObjectHaveKey(responseEntity.getBody().toString(), "communitys", "杩樻湭鍏ラ┗灏忓尯锛岃鍏堝叆椹诲皬鍖�");
+        Assert.jsonObjectHaveKey(responseEntity.getBody().toString(), "data", "杩樻湭鍏ラ┗灏忓尯锛岃鍏堝叆椹诲皬鍖�");
 
         JSONObject community = JSONObject.parseObject(responseEntity.getBody().toString());
 
-        JSONArray communitys = community.getJSONArray("communitys");
+        JSONArray communitys = community.getJSONArray("data");
 
         if (communitys == null || communitys.size() == 0) {
             throw new SMOException(ResponseConstant.RESULT_CODE_ERROR, "杩樻湭鍏ラ┗灏忓尯锛岃鍏堝叆椹诲皬鍖�");

--
Gitblit v1.8.0