mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-17 01:46:20 +08:00
fix(tenpayv3): 修复特约商户进件提交申请单接口因 URL 结尾反斜杠问题而无法正常请求的问题
This commit is contained in:
parent
1cf3264d80
commit
86f8f7f6ab
@ -15,7 +15,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
public static class WechatTenpayClientExecuteApplyForSubMerchantExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /applyment4sub/applyment 接口。</para>
|
||||
/// <para>异步调用 [POST] /applyment4sub/applyment/ 接口。</para>
|
||||
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_1.shtml </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
@ -28,7 +28,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(request, HttpMethod.Post, "applyment4sub", "applyment");
|
||||
.CreateRequest(request, HttpMethod.Post, "applyment4sub", "applyment/"); // NOTICE: 注意 URL 结尾的反斜杠不能删除
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CreateApplyForSubMerchantApplymentResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /applyment4sub/applyment 接口的请求。</para>
|
||||
/// <para>表示 [POST] /applyment4sub/applyment/ 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CreateApplyForSubMerchantApplymentRequest : WechatTenpayRequest
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /applyment4sub/applyment 接口的响应。</para>
|
||||
/// <para>表示 [POST] /applyment4sub/applyment/ 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CreateApplyForSubMerchantApplymentResponse : WechatTenpayResponse
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user