| | |
| | | /// </summary> |
| | | public class GetAlipayNotifyCommandHandler( |
| | | IRepository<EnterpriseWallet> rep, |
| | | IMediator mediator |
| | | IMediator mediator, |
| | | IHttpContextAccessor httpContextAccessor |
| | | ) : |
| | | IRequestHandler<GetAlipayNotifyCommand, bool>, |
| | | IRequestHandler<AlipayUserAgreementPageSignNotifyCommand, bool> |
| | | IRequestHandler<AlipayUserAgreementPageSignNotifyCommand, bool>, |
| | | IRequestHandler<AlipayFundTransOrderChangedNotifyCommand, bool> |
| | | { |
| | | private readonly IRepository<EnterpriseWallet> rep = rep; |
| | | private readonly IMediator mediator = mediator; |
| | | private readonly IHttpContextAccessor httpContextAccessor = httpContextAccessor; |
| | | |
| | | /// <summary> |
| | | /// 支付宝通知回传 |
| | |
| | | /// <returns></returns> |
| | | public Task<bool> Handle(GetAlipayNotifyCommand request, CancellationToken cancellationToken) |
| | | { |
| | | Console.WriteLine("表单数据:" + httpContextAccessor.HttpContext.Request.Form.ToJson()); |
| | | return Task.FromResult(true); |
| | | } |
| | | |
| | |
| | | }); |
| | | return true; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 资金单据状态变更通知 |
| | | /// </summary> |
| | | /// <param name="request"></param> |
| | | /// <param name="cancellationToken"></param> |
| | | /// <returns></returns> |
| | | public Task<bool> Handle(AlipayFundTransOrderChangedNotifyCommand request, CancellationToken cancellationToken) |
| | | { |
| | | Console.WriteLine("表单数据:" + httpContextAccessor.HttpContext.Request.Form.ToJson()); |
| | | return Task.FromResult(true); |
| | | } |
| | | } |
| | | } |