| | |
| | | using FlexJobApi.Core; |
| | | using Furion; |
| | | using MediatR; |
| | | using Microsoft.AspNetCore.Http; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | |
| | | /// <summary> |
| | | /// 支付宝通知回传 |
| | | /// </summary> |
| | | public class GetAlipayNotifyCommandHandler : |
| | | IRequestHandler<GetAlipayNotifyCommand, bool> |
| | | public class GetAlipayNotifyCommandHandler( |
| | | IHttpContextAccessor httpContextAccessor |
| | | ) : |
| | | IRequestHandler<GetAlipayNotifyCommand, bool>, |
| | | IRequestHandler<AlipayUserAgreementPageSignNotifyCommand, bool> |
| | | { |
| | | private readonly IHttpContextAccessor httpContextAccessor = httpContextAccessor; |
| | | |
| | | /// <summary> |
| | | /// 支付宝通知回传 |
| | | /// </summary> |
| | |
| | | { |
| | | return Task.FromResult(true); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 支付宝用户授权协议签约通知 |
| | | /// </summary> |
| | | /// <param name="request"></param> |
| | | /// <param name="cancellationToken"></param> |
| | | /// <returns></returns> |
| | | public Task<bool> Handle(AlipayUserAgreementPageSignNotifyCommand request, CancellationToken cancellationToken) |
| | | { |
| | | Console.WriteLine(httpContextAccessor.HttpContext.Request.QueryString); |
| | | return Task.FromResult(true); |
| | | } |
| | | } |
| | | } |