From a60c9afc1efed7f5a7eeaa673fa915ab79a775a8 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期五, 06 六月 2025 21:38:21 +0800 Subject: [PATCH] fix:订单完成时间赋值存在bug,只有在已完成或已退款时赋值 --- LifePayment/LifePayment.Application/LifePay/LifePayService.cs | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs index 379bf86..dbbcb41 100644 --- a/LifePayment/LifePayment.Application/LifePay/LifePayService.cs +++ b/LifePayment/LifePayment.Application/LifePay/LifePayService.cs @@ -1381,7 +1381,7 @@ return; } - // order.PlatformDeductionAmount = payAmount; + //order.PlatformDeductionAmount = payAmount; if (acoolyOrderNo.IsNotNullOrEmpty()) { @@ -1400,7 +1400,12 @@ order.LifePayOrderStatus = status; order.ACOOLYStatus = acoolyStatus; - order.FinishTime = DateTime.Now; + if (order.LifePayOrderStatus == LifePayOrderStatusEnum.宸插畬鎴� + || order.LifePayOrderStatus == LifePayOrderStatusEnum.宸查��娆�) + { + order.FinishTime = DateTime.Now; + } + await _lifePayOrderRepository.UpdateAsync(order); if (order.LifePayOrderStatus == LifePayOrderStatusEnum.宸插畬鎴�) -- Gitblit v1.9.1