feat(tenpayv3): 随官方更新获取平台证书接口请求模型

This commit is contained in:
Fu Diwei
2022-11-08 16:43:14 +08:00
parent dfdf413091
commit d2cc27f7f9
2 changed files with 11 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
@@ -34,6 +34,9 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Get, "certificates");
if (request.AlgorithmType != null)
flurlReq.SetQueryParam("algorithm_type", request.AlgorithmType);
return await client.SendRequestWithJsonAsync<Models.QueryCertificatesResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
}