update 青海平台Service

This commit is contained in:
Lemon
2024-04-30 10:37:00 +08:00
parent e5b3ea7989
commit 9b9cf6d1fe

View File

@@ -309,9 +309,7 @@ public class QingHaiPlatformServiceImpl implements ThirdPartyPlatformService {
.status(Integer.parseInt(status)) .status(Integer.parseInt(status))
.build(); .build();
// 调用平台接口 // 调用平台接口
JSONObject json = new JSONObject(); String jsonString = JSON.toJSONString(info);
json.put("ConnectorStatusInfo", info);
String jsonString = JSON.toJSONString(json);
// 获取令牌 // 获取令牌
String token = getToken(urlAddress, operatorId, operatorSecret, dataSecretIv, signSecret, dataSecret); String token = getToken(urlAddress, operatorId, operatorSecret, dataSecretIv, signSecret, dataSecret);
String result = HttpRequestUtil.sendPost(token, jsonString, url, dataSecret, dataSecretIv, operatorId, signSecret); String result = HttpRequestUtil.sendPost(token, jsonString, url, dataSecret, dataSecretIv, operatorId, signSecret);
@@ -652,9 +650,7 @@ public class QingHaiPlatformServiceImpl implements ThirdPartyPlatformService {
return null; return null;
} }
// 封装参数 // 封装参数
JSONObject jsonObject = new JSONObject(); String jsonString = JSON.toJSONString(chargeOrderInfo);
jsonObject.put("ChargeOrderInfo", chargeOrderInfo);
String jsonString = JSON.toJSONString(jsonObject);
// 发送请求 // 发送请求
String result = HttpRequestUtil.sendPost(token, jsonString, url, dataSecret, dataSecretIv, operatorId, signSecret); String result = HttpRequestUtil.sendPost(token, jsonString, url, dataSecret, dataSecretIv, operatorId, signSecret);
return result; return result;