Skip to content

Commit

Permalink
Merge pull request #2776 from JeffreySu/Developer
Browse files Browse the repository at this point in the history
v0.6.8.13 修复验签时 204(NoContent)情况下的异常
  • Loading branch information
JeffreySu authored Jan 31, 2023
2 parents 31c7a7d + e84b0ed commit 4c014a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public async Task<HttpResponseMessage> GetHttpResponseMessageAsync(string url, o
/// <param name="createDefaultInstance"></param>
/// <returns></returns>
public async Task<T> RequestAsync<T>(string url, object data, int timeOut = Config.TIME_OUT, ApiRequestMethod requestMethod = ApiRequestMethod.POST, bool checkSign = true, Func<T> createDefaultInstance = null)
where T : ReturnJsonBase/*, new()*/
where T : ReturnJsonBase, new()
{
T result = null;

Expand All @@ -202,6 +202,7 @@ public async Task<T> RequestAsync<T>(string url, object data, int timeOut = Conf
{
if (resultCode.StateCode == ((int)HttpStatusCode.NoContent).ToString())
{
result = new T();
result.VerifySignSuccess = true;
}
else
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>0.6.8.12</Version>
<Version>0.6.8.13</Version>
<AssemblyName>Senparc.Weixin.TenPayV3</AssemblyName>
<RootNamespace>Senparc.Weixin.TenPayV3</RootNamespace>
<LangVersion>10.0</LangVersion>
Expand Down Expand Up @@ -39,7 +39,7 @@
v0.6.8.4 修改 week_day 类型为 int[]
v0.6.8.7 优化 TenPayApiResultCode 获取逻辑,修复 TryGetCode() 方法中当匹配不到预设错误信息时,返回 null 的问题
v0.6.8.8 修复 RefundQueryAsync() URL 问题
v0.6.8.12 修复验签时 204(NoContent)情况下的异常
v0.6.8.13 修复验签时 204(NoContent)情况下的异常
</PackageReleaseNotes>
<RepositoryUrl>https://github.com/JeffreySu/WeiXinMPSDK</RepositoryUrl>
</PropertyGroup>
Expand Down

0 comments on commit 4c014a4

Please sign in to comment.