告警平台对接

develop
guyuliang 2024-08-27 16:23:58 +08:00
parent f27daac6fa
commit da98117b51
1 changed files with 6 additions and 3 deletions

View File

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