From e7a20f306bbc866e766eee253a99f35ff6e02fbd Mon Sep 17 00:00:00 2001 From: liangzy Date: Fri, 7 Aug 2020 19:51:19 +0800 Subject: [PATCH] delete sign value --- sdk/auth/rpc_signature_composer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/auth/rpc_signature_composer.go b/sdk/auth/rpc_signature_composer.go index cbc00a9..2c32042 100644 --- a/sdk/auth/rpc_signature_composer.go +++ b/sdk/auth/rpc_signature_composer.go @@ -26,6 +26,7 @@ func signRpcRequest(request requests.AcsRequest, signer Signer) (err error) { request.SetStringToSign(stringToSign) signature := signer.Sign(stringToSign, "&") request.GetQueryParams()["sign"] = signature + debug("grsdk sign %s", signature) return } @@ -106,7 +107,7 @@ func unsignRpcRequest(request *http.Request, signer Signer) (err error) { stringToSign = strings.Replace(stringToSign, "%7E", "~", -1) stringToSign = url.QueryEscape(stringToSign) stringToSign = request.Method + "&%2F&" + stringToSign - debug("grsdk singstring %s", stringToSign) + debug("grsdk signstring %s", stringToSign) if timestamp, err := strconv.ParseInt(signParams["access_time"], 10, 64); err != nil { return err