This commit is contained in:
Fu Diwei
2024-08-08 13:00:07 +08:00
parent 7de3ee50c9
commit b953a43bd7
56 changed files with 501 additions and 1070 deletions

View File

@@ -80,10 +80,8 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
if (request is null) throw new ArgumentNullException(nameof(request));
IFlurlRequest flurlReq = client
.CreateFlurlRequest(request, HttpMethod.Get, "refund", "domestic", "refunds", request.OutRefundNumber);
if (request.SubMerchantId is not null)
flurlReq.SetQueryParam("sub_mchid", request.SubMerchantId);
.CreateFlurlRequest(request, HttpMethod.Get, "refund", "domestic", "refunds", request.OutRefundNumber)
.SetQueryParam("sub_mchid", request.SubMerchantId);
return await client.SendFlurlRequestAsJsonAsync<Models.GetRefundDomesticRefundByOutRefundNumberResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}