Jelajahi Sumber

修正 下载账单 验签

Roc 5 tahun lalu
induk
melakukan
570e4f6b21

+ 5 - 1
src/Essensoft.AspNetCore.Payment.WeChatPay/WeChatPayV3Client.cs

@@ -112,7 +112,11 @@ namespace Essensoft.AspNetCore.Payment.WeChatPay
                 }
             }
 
-            await CheckV3ResponseSignAsync(options, serial, timestamp, nonce, signature, body);
+            // 下载账单不需要验签
+            if (!(response is WeChatPayBillDownloadResponse))
+            {
+                await CheckV3ResponseSignAsync(options, serial, timestamp, nonce, signature, body);
+            }
 
             return response;
         }