From 048b6e735f98a8bd7f4c484cf46a58e69e806af7 Mon Sep 17 00:00:00 2001 From: Lemon Date: Sun, 29 Sep 2024 09:52:11 +0800 Subject: [PATCH] =?UTF-8?q?update=20=20=E8=8B=8F=E5=B7=9E=E5=B8=82?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/service/impl/SuZhouPlatformServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);