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