From 8ea522c9d40fe2bc891312fa5bcb67362e2a0978 Mon Sep 17 00:00:00 2001 From: dongfo Date: Fri, 22 Mar 2019 08:52:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/PaySharp.Wechatpay/ConvertUtil.cs | 1 - src/PaySharp.Wechatpay/Response/QueryResponse.cs | 1 - src/PaySharp.Wechatpay/Response/RefundQueryResponse.cs | 1 - src/PaySharp.Wechatpay/Response/RefundResponse.cs | 1 - src/PaySharp.Wechatpay/WechatpayGateway.cs | 1 - 5 files changed, 5 deletions(-) diff --git a/src/PaySharp.Wechatpay/ConvertUtil.cs b/src/PaySharp.Wechatpay/ConvertUtil.cs index 8141027..dfe1b37 100644 --- a/src/PaySharp.Wechatpay/ConvertUtil.cs +++ b/src/PaySharp.Wechatpay/ConvertUtil.cs @@ -19,7 +19,6 @@ public static List ToList(GatewayData gatewayData, int index) w while (flag) { var type = typeof(T); - //var obj = Activator.CreateInstance(type); var obj = new T(); var properties = type.GetProperties(); var isFirstProperty = true; diff --git a/src/PaySharp.Wechatpay/Response/QueryResponse.cs b/src/PaySharp.Wechatpay/Response/QueryResponse.cs index 6910a75..629780b 100644 --- a/src/PaySharp.Wechatpay/Response/QueryResponse.cs +++ b/src/PaySharp.Wechatpay/Response/QueryResponse.cs @@ -123,7 +123,6 @@ public class QueryResponse : BaseResponse internal override void Execute(Merchant merchant, Request request) { - //Coupons = ConvertUtil.ToList(GatewayData, -1); Coupons = ConvertUtil.ToList(GatewayData); } diff --git a/src/PaySharp.Wechatpay/Response/RefundQueryResponse.cs b/src/PaySharp.Wechatpay/Response/RefundQueryResponse.cs index 197f3e3..6f9db5f 100644 --- a/src/PaySharp.Wechatpay/Response/RefundQueryResponse.cs +++ b/src/PaySharp.Wechatpay/Response/RefundQueryResponse.cs @@ -64,7 +64,6 @@ public class RefundQueryResponse : BaseResponse internal override void Execute(Merchant merchant, Request request) { - //Refunds = ConvertUtil.ToList(GatewayData, -1); Refunds = ConvertUtil.ToList(GatewayData); } diff --git a/src/PaySharp.Wechatpay/Response/RefundResponse.cs b/src/PaySharp.Wechatpay/Response/RefundResponse.cs index 06aee15..85b192d 100644 --- a/src/PaySharp.Wechatpay/Response/RefundResponse.cs +++ b/src/PaySharp.Wechatpay/Response/RefundResponse.cs @@ -99,7 +99,6 @@ public class RefundResponse : BaseResponse internal override void Execute(Merchant merchant, Request request) { - //RefundCoupons = ConvertUtil.ToList(GatewayData, -1); RefundCoupons = ConvertUtil.ToList(GatewayData); } diff --git a/src/PaySharp.Wechatpay/WechatpayGateway.cs b/src/PaySharp.Wechatpay/WechatpayGateway.cs index ef5418d..b4ecd3d 100644 --- a/src/PaySharp.Wechatpay/WechatpayGateway.cs +++ b/src/PaySharp.Wechatpay/WechatpayGateway.cs @@ -85,7 +85,6 @@ protected override async Task ValidateNotifyAsync() if (string.IsNullOrEmpty(NotifyResponse.ReqInfo)) { - //NotifyResponse.Coupons = ConvertUtil.ToList(GatewayData, -1); NotifyResponse.Coupons = ConvertUtil.ToList(GatewayData); if (NotifyResponse.Sign != SubmitProcess.BuildSign(GatewayData, _merchant.Key)) {