Revert "退款订单状态"

This reverts commit 95325a7fa6ea2dc09242b6e61ce1ec856223c62a.
This commit is contained in:
马梓彭 2026-08-07 10:41:05 +08:00
parent 6f288a7ecc
commit 03a3d175b9

View File

@ -3858,8 +3858,8 @@ public class UnifiedRegistrationService : ITransient
OriginalAmount = order.ActualAmount,
ActualAmount = actualRefundAmount,
DiscountAmount = 0,
// 统一用 Refunded,实退 0 的留痕单也要能被列表查到:
OrderStatus = OrderStatus.Refunded,
// 实退 0 记为"已取消",与真实退款区分,避免对账时把 0 元单误读为已退款
OrderStatus = actualRefundAmount > 0 ? OrderStatus.Refunded : OrderStatus.Cancelled,
PaymentTime = now,
Remark = input.CancelReason,
CreatedTime = now,