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, "查询失败");