diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/impl/SuZhouPlatformServiceImpl.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/impl/SuZhouPlatformServiceImpl.java index ae399b10c..fc99676f7 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/impl/SuZhouPlatformServiceImpl.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/service/impl/SuZhouPlatformServiceImpl.java @@ -205,7 +205,9 @@ public class SuZhouPlatformServiceImpl implements ThirdPartyPlatformService { String urlAddress = suZhouSecretInfo.getTheirUrlPrefix(); String url = urlAddress + "notification_alarmInfo"; - String jsonString = JSON.toJSONString(alarmInfo); + JSONObject jsonObject = new JSONObject(); + jsonObject.put("AlarmInfos", alarmInfo); + String jsonString = JSON.toJSONString(jsonObject); // 获取令牌 String token = getToken(urlAddress, operatorId, operatorSecret, dataSecretIv, signSecret, dataSecret); String result = HttpRequestUtil.sendPost(token, jsonString, url, dataSecret, dataSecretIv, operatorId, signSecret);