mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-18 17:48:12 +08:00
fix(tenpayv2): 修复解析非简单请求响应不正确的问题
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
@@ -172,7 +172,8 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV2
|
||||
string xml = Utilities.XmlUtility.ConvertFromJson(json);
|
||||
|
||||
using HttpContent httpContent = new StringContent(xml, Encoding.UTF8, "text/xml");
|
||||
return await SendRequestAsync<T>(flurlRequest, httpContent: httpContent, cancellationToken);
|
||||
using IFlurlResponse flurlResponse = await SendRequestAsync(flurlRequest, httpContent: httpContent, cancellationToken);
|
||||
return await WrapResponseWithXmlAsync<T>(flurlResponse, cancellationToken);
|
||||
}
|
||||
}
|
||||
catch (FlurlHttpException ex)
|
||||
|
Reference in New Issue
Block a user