From d04c55602f3baa95a06095bcfa35d5efe91affc9 Mon Sep 17 00:00:00 2001 From: guyuliang Date: Tue, 27 Aug 2024 16:30:29 +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 --- .../src/main/java/com/bocloud/sms/service/IndexServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 84ac5a8..149f0eb 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 @@ -185,7 +185,7 @@ public class IndexServiceImpl implements IndexService { log.info("result:" + result); return new GeneralResult(false, "查询失败"); } - JSONObject data = jsonObject.getJSONObject("data"); + List data = JSONObject.parseObject(jsonObject.getString("data"), List.class); return new GeneralResult(true, data, "查询成功"); } catch (Exception e) { log.info("查询失败", e);