http增加日志
parent
42b86a9f1d
commit
ab5ab63e6a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue