From da98117b51b9aee104bcc9a91d734b1cc4835d3f Mon Sep 17 00:00:00 2001 From: guyuliang Date: Tue, 27 Aug 2024 16:23:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E5=B9=B3=E5=8F=B0=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bocloud/sms/service/IndexServiceImpl.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java index 877445c..84ac5a8 100644 --- a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java +++ b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/IndexServiceImpl.java @@ -150,7 +150,8 @@ public class IndexServiceImpl implements IndexService { log.info("result:" + result); return new GeneralResult(false, "查询失败"); } - return new GeneralResult(true, jsonObject, "查询成功"); + JSONObject data = jsonObject.getJSONObject("data"); + return new GeneralResult(true, data, "查询成功"); } catch (Exception e) { log.info("查询失败", e); return new GeneralResult(false, "查询失败"); @@ -167,7 +168,8 @@ public class IndexServiceImpl implements IndexService { log.info("result:" + result); return new GeneralResult(false, "查询失败"); } - return new GeneralResult(true, jsonObject, "查询成功"); + JSONObject data = jsonObject.getJSONObject("data"); + return new GeneralResult(true, data, "查询成功"); } catch (Exception e) { log.info("查询失败", e); return new GeneralResult(false, "查询失败"); @@ -183,7 +185,8 @@ public class IndexServiceImpl implements IndexService { log.info("result:" + result); return new GeneralResult(false, "查询失败"); } - return new GeneralResult(true, jsonObject, "查询成功"); + JSONObject data = jsonObject.getJSONObject("data"); + return new GeneralResult(true, data, "查询成功"); } catch (Exception e) { log.info("查询失败", e); return new GeneralResult(false, "查询失败");