feat(tenpayv3): 构造器模式

This commit is contained in:
Fu Diwei
2024-02-06 14:25:41 +08:00
committed by RHQYZ
parent fbb9d3c6af
commit 1dcd2a9158
6 changed files with 105 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample.Controllers
string content = await reader.ReadToEndAsync();
_logger.LogInformation("接收到微信支付推送的数据:{0}", content);
using var client = _wechatTenpayClientFactory.Create(merchantId);
var client = _wechatTenpayClientFactory.Create(merchantId);
bool valid = client.VerifyEventSignature(
webhookTimestamp: timestamp,
webhookNonce: nonce,