From 3b69fab02f410034f3d3affe575b4bd7c75d0c3b Mon Sep 17 00:00:00 2001 From: tanshaolong Date: Thu, 5 Sep 2024 15:30:23 +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 --- .../ctstack/plugin/provider/utils/TyHttpUtils.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 5b8b5e5d..44cb887b 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,7 +37,9 @@ public class TyHttpUtils { headersOfAuth.put("hybrid-date", hybridDate); String requestId = UUID.randomUUID().toString().replace("-", ""); headersOfAuth.put("ctyun-hybrid-request-id", requestId); - logger.info("--------------------", requestId); + logger.info("----------------------------------------------------------"); + logger.info(requestId); + logger.info("----------------------------------------------------------"); String forSignature = forSignature(method, headersOfAuth, params); byte[] kdate = kdate(hybridDate, accessKey, secretKey); byte[] signatureBytes = HmacSHA256Util.hmacSHA256(forSignature.getBytes(StandardCharsets.UTF_8), kdate); @@ -50,7 +52,9 @@ public class TyHttpUtils { newHeaders.put("Content-Type", "application/json"); newHeaders.put("hybrid-date", hybridDate); newHeaders.put("ctyun-hybrid-request-id", requestId); - logger.info("--------------------", requestId); + logger.info("----------------------------------------------------------"); + logger.info(requestId); + logger.info("----------------------------------------------------------"); newHeaders.put("Hybrid-Authorization", authorization); newHeaders.put("ctUserId", ctUserId);