This commit is contained in:
2024-04-30 13:58:53 +08:00

View File

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