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 53b4b26..2558b30 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 @@ -34,8 +34,8 @@ public class IndexServiceImpl implements IndexService { String result = ykUtil.call(YkInfo.getTaskList, param, JSONArray.class); log.info("result"); - JSONArray dataArray = JSONArray.parseArray(result); - return new GeneralResult(true, dataArray,"查询成功"); + JSONObject jsonObject = JSONArray.parseObject(result, JSONObject.class); + return new GeneralResult(true, jsonObject,"查询成功"); } catch (Exception e) { log.info("查询失败",e); return new GeneralResult(false, "查询失败");