Skip to content

Commit

Permalink
代码格式调整
Browse files Browse the repository at this point in the history
  • Loading branch information
dongfo committed Mar 22, 2019
1 parent 280496d commit 8ea522c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/PaySharp.Wechatpay/ConvertUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public static List<T> ToList<T, TChildren>(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;
Expand Down
1 change: 0 additions & 1 deletion src/PaySharp.Wechatpay/Response/QueryResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ public class QueryResponse : BaseResponse

internal override void Execute<TModel, TResponse>(Merchant merchant, Request<TModel, TResponse> request)
{
//Coupons = ConvertUtil.ToList<CouponResponse, object>(GatewayData, -1);
Coupons = ConvertUtil.ToList<CouponResponse>(GatewayData);
}

Expand Down
1 change: 0 additions & 1 deletion src/PaySharp.Wechatpay/Response/RefundQueryResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public class RefundQueryResponse : BaseResponse

internal override void Execute<TModel, TResponse>(Merchant merchant, Request<TModel, TResponse> request)
{
//Refunds = ConvertUtil.ToList<RefundResponse, RefundCouponResponse>(GatewayData, -1);
Refunds = ConvertUtil.ToList<RefundResponse, RefundCouponResponse>(GatewayData);
}

Expand Down
1 change: 0 additions & 1 deletion src/PaySharp.Wechatpay/Response/RefundResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ public class RefundResponse : BaseResponse

internal override void Execute<TModel, TResponse>(Merchant merchant, Request<TModel, TResponse> request)
{
//RefundCoupons = ConvertUtil.ToList<RefundCouponResponse, object>(GatewayData, -1);
RefundCoupons = ConvertUtil.ToList<RefundCouponResponse>(GatewayData);
}

Expand Down
1 change: 0 additions & 1 deletion src/PaySharp.Wechatpay/WechatpayGateway.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ protected override async Task<bool> ValidateNotifyAsync()

if (string.IsNullOrEmpty(NotifyResponse.ReqInfo))
{
//NotifyResponse.Coupons = ConvertUtil.ToList<CouponResponse, object>(GatewayData, -1);
NotifyResponse.Coupons = ConvertUtil.ToList<CouponResponse>(GatewayData);
if (NotifyResponse.Sign != SubmitProcess.BuildSign(GatewayData, _merchant.Key))
{
Expand Down

0 comments on commit 8ea522c

Please sign in to comment.