mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-07-18 22:35:46 +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
|
public static class WechatTenpayClientExecuteApplyForSubMerchantExtensions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <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>
|
/// <para>REF: https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter11_1_1.shtml </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="client"></param>
|
/// <param name="client"></param>
|
||||||
@ -28,7 +28,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
|
|||||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||||
|
|
||||||
IFlurlRequest flurlReq = client
|
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);
|
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
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /applyment4sub/applyment 接口的请求。</para>
|
/// <para>表示 [POST] /applyment4sub/applyment/ 接口的请求。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CreateApplyForSubMerchantApplymentRequest : WechatTenpayRequest
|
public class CreateApplyForSubMerchantApplymentRequest : WechatTenpayRequest
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ using System.Collections.Generic;
|
|||||||
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>表示 [POST] /applyment4sub/applyment 接口的响应。</para>
|
/// <para>表示 [POST] /applyment4sub/applyment/ 接口的响应。</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CreateApplyForSubMerchantApplymentResponse : WechatTenpayResponse
|
public class CreateApplyForSubMerchantApplymentResponse : WechatTenpayResponse
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user