mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-02 00:49:59 +08:00
update
This commit is contained in:
@@ -110,7 +110,7 @@ public class HttpRequestUtil {
|
||||
byte[] encryptText = Cryptos.aesEncrypt(data.getBytes(),
|
||||
dataSecret.getBytes(), dataSecretIV.getBytes());
|
||||
String encryptData = Encodes.encodeBase64(encryptText);
|
||||
System.out.println("加密数据:" + encryptData);
|
||||
log.info("联联平台发送请求 加密数据:" + encryptData);
|
||||
|
||||
Map<String, String> params = Maps.newLinkedHashMap();
|
||||
params.put("OperatorID", operatorId);
|
||||
@@ -121,7 +121,7 @@ public class HttpRequestUtil {
|
||||
params.put("Sig", sign);
|
||||
|
||||
String postData = JSON.toJSONString(params);
|
||||
log.info("联联平台发送请求 最终提交数据:{}", postData);
|
||||
log.info("联联平台发送请求 最终提交数据:{}, 加密数据:{}", params, postData);
|
||||
// System.out.println("最终提交数据:" + postData);
|
||||
|
||||
String hutoolRequest = HttpRequest.post(url).header("Authorization", "Bearer " + token).body(postData).execute().body();
|
||||
@@ -129,6 +129,9 @@ public class HttpRequestUtil {
|
||||
log.info("联联平台发送请求 接收到返回数据:{}", hutoolRequest);
|
||||
// System.out.println("接收到返回数据:" + hutoolRequest);
|
||||
|
||||
if (StringUtils.isBlank(hutoolRequest)) {
|
||||
return "返回数据为空";
|
||||
}
|
||||
Map<String, Object> map = (Map<String, Object>) JSON.parse(hutoolRequest);
|
||||
|
||||
log.info("联联平台发送请求 返回数据map:{}", JSON.toJSONString(map));
|
||||
|
||||
Reference in New Issue
Block a user