update 打印日志

This commit is contained in:
Lemon
2023-09-13 15:40:56 +08:00
parent 3551a38841
commit 2bc06bf75a

View File

@@ -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;
}