llj
1 天以前 1c90213ebd42e2d00324a71a67a60d07e4c8a7da
WebAPI/Service/SignatureVerifyAttribute.cs
@@ -69,6 +69,7 @@
                if (!string.IsNullOrEmpty(query) && query.StartsWith("?"))
                {
                    rawData = query.Substring(1); 
                }
            }
            else
@@ -84,6 +85,7 @@
                            actionContext.Request.Content.Headers.ContentType.MediaType);
                }
            }
            rawData = rawData.Replace("'", "%27");
            var signStr = rawData + "&timestamp=" + timestamp + "&nonce=" + nonce + "&key=" + SecretKey;
            var serverSign = ComputeHmacSha256(signStr, SecretKey);