test: 修复检测工具的一处边界问题

This commit is contained in:
Fu Diwei
2021-08-16 15:25:06 +08:00
parent 5522bb49b7
commit 0076cacb0c
6 changed files with 25 additions and 24 deletions

View File

@@ -27,8 +27,9 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3
if (client is null) throw new ArgumentNullException(nameof(client));
if (request is null) throw new ArgumentNullException(nameof(request));
// NOTICE: 注意 URL 结尾的反斜杠不能删除
IFlurlRequest flurlReq = client
.CreateRequest(request, HttpMethod.Post, "applyment4sub", "applyment/"); // NOTICE: 注意 URL 结尾的反斜杠不能删除
.CreateRequest(request, HttpMethod.Post, "applyment4sub", "applyment/");
return await client.SendRequestWithJsonAsync<Models.CreateApplyForSubMerchantApplymentResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}