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 + "×tamp=" + timestamp + "&nonce=" + nonce + "&key=" + SecretKey; var serverSign = ComputeHmacSha256(signStr, SecretKey);