fix(work): 修复部分 POST 接口丢失请求正文的问题

This commit is contained in:
Fu Diwei
2023-07-16 21:49:01 +08:00
parent ca9e901fc3
commit 2ad7a292fe
25 changed files with 103 additions and 103 deletions

View File

@@ -178,7 +178,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
.SetQueryParam("access_token", request.AccessToken)
.SetQueryParam("open_kfid", request.OpenKfId);
return await client.SendRequestWithJsonAsync<Models.CgibinKfServicerListResponse>(flurlReq, cancellationToken: cancellationToken);
return await client.SendRequestWithJsonAsync<Models.CgibinKfServicerListResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
#endregion
@@ -245,7 +245,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work
.CreateRequest(request, HttpMethod.Get, "cgi-bin", "kf", "customer", "get_upgrade_service_config")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendRequestWithJsonAsync<Models.CgibinKfCustomerGetUpgradeServiceConfigResponse>(flurlReq, cancellationToken: cancellationToken);
return await client.SendRequestWithJsonAsync<Models.CgibinKfCustomerGetUpgradeServiceConfigResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
}
/// <summary>