diff --git a/build/version.props b/build/version.props index 42ee8495..3ecd1ad8 100644 --- a/build/version.props +++ b/build/version.props @@ -3,7 +3,7 @@ 1 0 11 - 20180716-1 + 20180716-2 $(VersionMajor).$(VersionMinor).$(VersionPatch) preview-$(VersionQuality) diff --git a/src/Util.Biz.Payments/Wechatpay/Services/WechatpayNotifyService.cs b/src/Util.Biz.Payments/Wechatpay/Services/WechatpayNotifyService.cs index 3f422fca..ff51315c 100644 --- a/src/Util.Biz.Payments/Wechatpay/Services/WechatpayNotifyService.cs +++ b/src/Util.Biz.Payments/Wechatpay/Services/WechatpayNotifyService.cs @@ -35,6 +35,14 @@ namespace Util.Biz.Payments.Wechatpay.Services { _isLoad = false; } + /// + /// 获取参数集合 + /// + public IDictionary GetParams() { + Init(); + return _result.GetParams(); + } + /// /// 获取参数 /// @@ -78,14 +86,6 @@ namespace Util.Biz.Payments.Wechatpay.Services { } } - /// - /// 获取参数集合 - /// - public IDictionary GetParams() { - Init(); - return _result.GetParams(); - } - /// /// 验证 /// @@ -121,16 +121,16 @@ namespace Util.Biz.Payments.Wechatpay.Services { /// /// 商户订单号 /// - public string OrderId => _result.GetParam( WechatpayConst.OutTradeNo ); + public string OrderId => GetParam( WechatpayConst.OutTradeNo ); /// /// 支付订单号 /// - public string TradeNo => _result.GetParam( WechatpayConst.TransactionId ); + public string TradeNo => GetParam( WechatpayConst.TransactionId ); /// /// 支付金额 /// - public decimal Money => Convert.ToDecimal( _result.GetParam( WechatpayConst.TotalFee ).ToInt() / 100, 2 ); + public decimal Money => Convert.ToDecimal( GetParam( WechatpayConst.TotalFee ).ToInt() / 100, 2 ); } } diff --git a/src/Util/Helpers/Convert.cs b/src/Util/Helpers/Convert.cs index a462a842..f988111f 100644 --- a/src/Util/Helpers/Convert.cs +++ b/src/Util/Helpers/Convert.cs @@ -86,7 +86,7 @@ namespace Util.Helpers { } /// - /// 转换为64位浮点型,并按指定小数位舍入,温馨提示:4舍6入5成双 + /// 转换为64位浮点型,并按指定小数位舍入 /// /// 输入值 /// 小数位数 @@ -95,7 +95,7 @@ namespace Util.Helpers { } /// - /// 转换为64位可空浮点型,并按指定小数位舍入,温馨提示:4舍6入5成双 + /// 转换为64位可空浮点型,并按指定小数位舍入 /// /// 输入值 /// 小数位数 @@ -109,7 +109,7 @@ namespace Util.Helpers { } /// - /// 转换为128位浮点型,并按指定小数位舍入,温馨提示:4舍6入5成双 + /// 转换为128位浮点型,并按指定小数位舍入 /// /// 输入值 /// 小数位数 @@ -118,7 +118,7 @@ namespace Util.Helpers { } /// - /// 转换为128位可空浮点型,并按指定小数位舍入,温馨提示:4舍6入5成双 + /// 转换为128位可空浮点型,并按指定小数位舍入 /// /// 输入值 /// 小数位数