From ab5ab63e6a98390bed3dfb129d041caddb38e8e9 Mon Sep 17 00:00:00 2001 From: tanshaolong Date: Thu, 5 Sep 2024 15:25:00 +0800 Subject: [PATCH] =?UTF-8?q?http=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/bocloud/ctstack/plugin/provider/utils/TyHttpUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/provider/utils/TyHttpUtils.java b/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/provider/utils/TyHttpUtils.java index 961e68ff..5b8b5e5d 100644 --- a/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/provider/utils/TyHttpUtils.java +++ b/bocloud.ctstack.plugin/src/main/java/com/bocloud/ctstack/plugin/provider/utils/TyHttpUtils.java @@ -37,6 +37,7 @@ public class TyHttpUtils { headersOfAuth.put("hybrid-date", hybridDate); String requestId = UUID.randomUUID().toString().replace("-", ""); headersOfAuth.put("ctyun-hybrid-request-id", requestId); + logger.info("--------------------", requestId); String forSignature = forSignature(method, headersOfAuth, params); byte[] kdate = kdate(hybridDate, accessKey, secretKey); byte[] signatureBytes = HmacSHA256Util.hmacSHA256(forSignature.getBytes(StandardCharsets.UTF_8), kdate); @@ -49,6 +50,7 @@ public class TyHttpUtils { newHeaders.put("Content-Type", "application/json"); newHeaders.put("hybrid-date", hybridDate); newHeaders.put("ctyun-hybrid-request-id", requestId); + logger.info("--------------------", requestId); newHeaders.put("Hybrid-Authorization", authorization); newHeaders.put("ctUserId", ctUserId);