From e84b0ed94dd3f81958ab136151c76f38c8f7277e Mon Sep 17 00:00:00 2001 From: JeffreySu Date: Tue, 31 Jan 2023 11:49:45 +0800 Subject: [PATCH] =?UTF-8?q?v0.6.8.13=20=E4=BF=AE=E5=A4=8D=E9=AA=8C?= =?UTF-8?q?=E7=AD=BE=E6=97=B6=20204=EF=BC=88NoContent=EF=BC=89=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8B=E7=9A=84=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Senparc.Weixin.TenPayV3/HttpHandlers/TenPayApiRequest.cs | 3 ++- .../Senparc.Weixin.TenPayV3.net7.csproj | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Senparc.Weixin.TenPay/Senparc.Weixin.TenPayV3/HttpHandlers/TenPayApiRequest.cs b/src/Senparc.Weixin.TenPay/Senparc.Weixin.TenPayV3/HttpHandlers/TenPayApiRequest.cs index 29cfbb24a5..c651d7095c 100644 --- a/src/Senparc.Weixin.TenPay/Senparc.Weixin.TenPayV3/HttpHandlers/TenPayApiRequest.cs +++ b/src/Senparc.Weixin.TenPay/Senparc.Weixin.TenPayV3/HttpHandlers/TenPayApiRequest.cs @@ -180,7 +180,7 @@ public async Task GetHttpResponseMessageAsync(string url, o /// /// public async Task RequestAsync(string url, object data, int timeOut = Config.TIME_OUT, ApiRequestMethod requestMethod = ApiRequestMethod.POST, bool checkSign = true, Func createDefaultInstance = null) - where T : ReturnJsonBase/*, new()*/ + where T : ReturnJsonBase, new() { T result = null; @@ -202,6 +202,7 @@ public async Task RequestAsync(string url, object data, int timeOut = Conf { if (resultCode.StateCode == ((int)HttpStatusCode.NoContent).ToString()) { + result = new T(); result.VerifySignSuccess = true; } else diff --git a/src/Senparc.Weixin.TenPay/Senparc.Weixin.TenPayV3/Senparc.Weixin.TenPayV3.net7.csproj b/src/Senparc.Weixin.TenPay/Senparc.Weixin.TenPayV3/Senparc.Weixin.TenPayV3.net7.csproj index 3931906182..cc1409b29d 100644 --- a/src/Senparc.Weixin.TenPay/Senparc.Weixin.TenPayV3/Senparc.Weixin.TenPayV3.net7.csproj +++ b/src/Senparc.Weixin.TenPay/Senparc.Weixin.TenPayV3/Senparc.Weixin.TenPayV3.net7.csproj @@ -1,7 +1,7 @@ netstandard2.1 - 0.6.8.12 + 0.6.8.13 Senparc.Weixin.TenPayV3 Senparc.Weixin.TenPayV3 10.0 @@ -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)情况下的异常 https://github.com/JeffreySu/WeiXinMPSDK