| | |
| | | using LifePayment.Application.Contracts; |
| | | using Alipay.AopSdk.F2FPay.Model; |
| | | using LifePayment.Application.Contracts; |
| | | using LifePayment.Domain.Shared; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Mvc; |
| | |
| | | { |
| | | |
| | | private readonly ILifePayService _lifePayService; |
| | | private readonly ILifePayOrderService _lifePayOrderService; |
| | | |
| | | private readonly ILogger<AliPayNotifyController> _logger; |
| | | |
| | |
| | | |
| | | ILogger<AliPayNotifyController> logger, |
| | | |
| | | ILifePayService lifePayService) |
| | | ILifePayService lifePayService, |
| | | ILifePayOrderService lifePayOrderService) |
| | | { |
| | | _logger = logger; |
| | | _lifePayService = lifePayService; |
| | | _lifePayOrderService = lifePayOrderService; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | if (input.TradeStatus == LifePaymentConstant.AliPayStatus.支付成功) |
| | | { |
| | | await _lifePayService.LifePaySuccessHandler(input.OutTradeNo, input.TradeNo); |
| | | // 插入收支流水 |
| | | await _lifePayOrderService.AddLifePayExpensesReceipts(new AddLifePayExpensesReceiptsInput() { OrderNo = input.OutTradeNo, |
| | | OutOrderNo = input.TradeNo ,LifePayType = LifePayTypeEnum.AliPay,ExpensesReceiptsType = ExpensesReceiptsTypeEnum.Expenses, |
| | | Amount = input.ReceiptAmount.Value }); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | _logger.LogError($"生活管家支付宝充值回调通知:订单号异常 "+ input.OutTradeNo); |
| | | } |
| | | |
| | | return new ContentResult |
| | |
| | | }; |
| | | } |
| | | |
| | | |
| | | |
| | | #endif |
| | | |
| | | /// <summary> |