Prechádzať zdrojové kódy

HMACSHA256 重命名为 HMAC_SHA256

Roc 5 rokov pred
rodič
commit
edc0a15e9f

+ 1 - 1
src/Essensoft.AspNetCore.Payment.Security/HMACSHA256.cs → src/Essensoft.AspNetCore.Payment.Security/HMAC_SHA256.cs

@@ -3,7 +3,7 @@ using System.Text;
 
 namespace Essensoft.AspNetCore.Payment.Security
 {
-    public static class HMACSHA256
+    public static class HMAC_SHA256
     {
         public static string Compute(string data, string key)
         {

+ 1 - 1
src/Essensoft.AspNetCore.Payment.WeChatPay/WeChatPaySignature.cs

@@ -22,7 +22,7 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay
             return signType switch
             {
                 WeChatPaySignType.MD5 => MD5.Compute(signContent).ToUpperInvariant(),
-                WeChatPaySignType.HMAC_SHA256 => HMACSHA256.Compute(signContent, key).ToUpperInvariant(),
+                WeChatPaySignType.HMAC_SHA256 => HMAC_SHA256.Compute(signContent, key).ToUpperInvariant(),
                 _ => throw new WeChatPayException("Unknown sign type!"),
             };
         }