update 苏州市平台

This commit is contained in:
Lemon
2024-09-29 09:52:11 +08:00
parent 1aff2edea8
commit 048b6e735f

View File

@@ -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);