mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-22 07:06:20 +08:00
重构微信退款回调通知服务
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
<PropertyGroup>
|
||||
<VersionMajor>1</VersionMajor>
|
||||
<VersionMinor>4</VersionMinor>
|
||||
<VersionPatch>7</VersionPatch>
|
||||
<VersionPatch>8</VersionPatch>
|
||||
<VersionQuality></VersionQuality>
|
||||
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
|
||||
<VersionSuffix></VersionSuffix>
|
||||
|
||||
@@ -1,11 +1,17 @@
|
||||
using Util.Biz.Payments.Core;
|
||||
|
||||
namespace Util.Biz.Payments.Wechatpay.Abstractions
|
||||
{
|
||||
namespace Util.Biz.Payments.Wechatpay.Abstractions {
|
||||
/// <summary>
|
||||
/// 微信退款回调服务
|
||||
/// </summary>
|
||||
public interface IWechatpayRefundNotifyService: INotifyService
|
||||
{
|
||||
public interface IWechatpayRefundNotifyService : INotifyService {
|
||||
/// <summary>
|
||||
/// 微信退款单号
|
||||
/// </summary>
|
||||
string RefundId { get; }
|
||||
/// <summary>
|
||||
/// 商户退款单号
|
||||
/// </summary>
|
||||
string RefundNo { get; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,28 +1,26 @@
|
||||
using Util.Biz.Payments.Wechatpay.Abstractions;
|
||||
using Util.Biz.Payments.Wechatpay.Configs;
|
||||
|
||||
namespace Util.Biz.Payments.Wechatpay.Services
|
||||
{
|
||||
namespace Util.Biz.Payments.Wechatpay.Services {
|
||||
/// <summary>
|
||||
/// 微信退款回调服务
|
||||
/// </summary>
|
||||
public class WechatpayRefundNotifyService:WechatpayNotifyService,IWechatpayRefundNotifyService
|
||||
{
|
||||
public class WechatpayRefundNotifyService : WechatpayNotifyService, IWechatpayRefundNotifyService {
|
||||
/// <summary>
|
||||
/// 初始化微信退款回调服务
|
||||
/// </summary>
|
||||
/// <param name="configProvider"></param>
|
||||
public WechatpayRefundNotifyService(IWechatpayConfigProvider configProvider) : base(configProvider)
|
||||
{
|
||||
/// <param name="configProvider">配置提供器</param>
|
||||
public WechatpayRefundNotifyService( IWechatpayConfigProvider configProvider ) : base( configProvider ) {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 微信退款单号
|
||||
/// </summary>
|
||||
public string RefundId => GetParam("refund_id");
|
||||
public string RefundId => GetParam( "refund_id" );
|
||||
|
||||
/// <summary>
|
||||
/// 商户退款单号
|
||||
/// </summary>
|
||||
public string RefundNo=> GetParam("out_refund_no");
|
||||
public string RefundNo => GetParam( "out_refund_no" );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user