mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 打印日志
This commit is contained in:
@@ -121,17 +121,17 @@ public class HttpRequestUtil {
|
||||
params.put("Sig", sign);
|
||||
|
||||
String postData = JSON.toJSONString(params);
|
||||
log.info("最终提交数据:{}", postData);
|
||||
log.info("联联平台发送请求 最终提交数据:{}", postData);
|
||||
// System.out.println("最终提交数据:" + postData);
|
||||
|
||||
String hutoolRequest = HttpRequest.post(url).header("Authorization", "Bearer " + token).body(postData).execute().body();
|
||||
|
||||
log.info("接收到返回数据:{}", hutoolRequest);
|
||||
log.info("联联平台发送请求 接收到返回数据:{}", hutoolRequest);
|
||||
// System.out.println("接收到返回数据:" + hutoolRequest);
|
||||
|
||||
Map<String, Object> map = (Map<String, Object>) JSON.parse(hutoolRequest);
|
||||
|
||||
log.info("返回数据map:{}", JSON.toJSONString(map));
|
||||
log.info("联联平台发送请求 返回数据map:{}", JSON.toJSONString(map));
|
||||
|
||||
int ret = (int) map.get("Ret");
|
||||
String resultMsg = (String) map.get("Msg");
|
||||
@@ -151,7 +151,7 @@ public class HttpRequestUtil {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
log.info("解密数据:{}", plainData);
|
||||
log.info("联联平台发送请求 解密数据:{}", plainData);
|
||||
// System.out.println("解密数据:" + plainData);
|
||||
return resultMsg;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user