mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-13 14:30:08 +08:00
update 苏州市平台
This commit is contained in:
@@ -154,6 +154,7 @@ public class SuZhouPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String notificationAlarmInfo(PushAlarmInfoDTO dto) {
|
public String notificationAlarmInfo(PushAlarmInfoDTO dto) {
|
||||||
|
List<AlarmInfo> alarmInfoList = new ArrayList<>();
|
||||||
String pileConnectorCode = dto.getPileConnectorCode();
|
String pileConnectorCode = dto.getPileConnectorCode();
|
||||||
String connectorStatus = dto.getConnectorStatus();
|
String connectorStatus = dto.getConnectorStatus();
|
||||||
String alertCode = "";
|
String alertCode = "";
|
||||||
@@ -193,6 +194,7 @@ public class SuZhouPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
.status(alertStatus)
|
.status(alertStatus)
|
||||||
|
|
||||||
.build();
|
.build();
|
||||||
|
alarmInfoList.add(alarmInfo);
|
||||||
|
|
||||||
// 查询相关配置信息
|
// 查询相关配置信息
|
||||||
ThirdPartySecretInfoVO suZhouSecretInfo = getSuZhouSecretInfo();
|
ThirdPartySecretInfoVO suZhouSecretInfo = getSuZhouSecretInfo();
|
||||||
@@ -206,7 +208,7 @@ public class SuZhouPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
String url = urlAddress + "notification_alarmInfo";
|
String url = urlAddress + "notification_alarmInfo";
|
||||||
|
|
||||||
JSONObject jsonObject = new JSONObject();
|
JSONObject jsonObject = new JSONObject();
|
||||||
jsonObject.put("AlarmInfos", alarmInfo);
|
jsonObject.put("AlarmInfos", alarmInfoList);
|
||||||
String jsonString = JSON.toJSONString(jsonObject);
|
String jsonString = JSON.toJSONString(jsonObject);
|
||||||
// 获取令牌
|
// 获取令牌
|
||||||
String token = getToken(urlAddress, operatorId, operatorSecret, dataSecretIv, signSecret, dataSecret);
|
String token = getToken(urlAddress, operatorId, operatorSecret, dataSecretIv, signSecret, dataSecret);
|
||||||
|
|||||||
Reference in New Issue
Block a user