mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-22 20:13:41 +08:00
feat(tenpayv3): 构造器模式
This commit is contained in:
@@ -17,7 +17,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample.Services.BackgroundJobs
|
||||
try
|
||||
{
|
||||
const string ALGORITHM_TYPE = "RSA";
|
||||
var client = _wechatTenpayClientFactory.Create(tenpayMerchantOptions.MerchantId);
|
||||
using var client = _wechatTenpayClientFactory.Create(tenpayMerchantOptions.MerchantId);
|
||||
var request = new QueryCertificatesRequest() { AlgorithmType = ALGORITHM_TYPE };
|
||||
var response = await client.ExecuteQueryCertificatesAsync(request);
|
||||
if (response.IsSuccessful())
|
||||
|
Reference in New Issue
Block a user