From 83971e864fbee9e1a12d25239fbf005760ee983f Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期五, 28 三月 2025 14:22:59 +0800 Subject: [PATCH] fix:支付查询 --- LifePayment/LifePayment.HttpApi/LifePay/AliPayNotifyController.cs | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/LifePayment/LifePayment.HttpApi/LifePay/AliPayNotifyController.cs b/LifePayment/LifePayment.HttpApi/LifePay/AliPayNotifyController.cs index 300150a..37a922e 100644 --- a/LifePayment/LifePayment.HttpApi/LifePay/AliPayNotifyController.cs +++ b/LifePayment/LifePayment.HttpApi/LifePay/AliPayNotifyController.cs @@ -22,6 +22,7 @@ { private readonly ILifePayService _lifePayService; + private readonly ILifePayOrderService _lifePayOrderService; private readonly ILogger<AliPayNotifyController> _logger; @@ -29,10 +30,12 @@ ILogger<AliPayNotifyController> logger, - ILifePayService lifePayService) + ILifePayService lifePayService, + ILifePayOrderService lifePayOrderService) { _logger = logger; _lifePayService = lifePayService; + _lifePayOrderService = lifePayOrderService; } /// <summary> @@ -57,6 +60,9 @@ 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 -- Gitblit v1.9.1