From 7d8d1c2426c3ed66c0de6e2364913d763541a0b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Mon, 11 May 2026 16:58:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=8D=E8=B4=B9=E8=B5=9B=E4=BA=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/Event/UnifiedRegistrationService.cs | 7 +++++++ YD_Event.Application/YD_Event.Application.xml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/YD_Event.Application/Event/UnifiedRegistrationService.cs b/YD_Event.Application/Event/UnifiedRegistrationService.cs index c704352..16b1483 100644 --- a/YD_Event.Application/Event/UnifiedRegistrationService.cs +++ b/YD_Event.Application/Event/UnifiedRegistrationService.cs @@ -141,6 +141,13 @@ public class UnifiedRegistrationService : ITransient registration.TotalPersonCount = totalPersonCount; await _registrationRepository.UpdateAsync(registration); + // 5. 如果是免费赛事,直接完成支付 + if (totalAmount <= 0) + { + _logger.LogInformation("免费赛事,直接完成支付,报名ID: {RegistrationId}", registration.Id); + await HandleFreePaymentAsync(registration, null, input.CreatedUserId); + } + _logger.LogInformation("统一报名处理完成,报名ID: {RegistrationId}", registration.Id); return new UnifiedRegistrationOutput diff --git a/YD_Event.Application/YD_Event.Application.xml b/YD_Event.Application/YD_Event.Application.xml index 8f0cc52..f5bd1a9 100644 --- a/YD_Event.Application/YD_Event.Application.xml +++ b/YD_Event.Application/YD_Event.Application.xml @@ -9059,7 +9059,7 @@ 验证用户单位认证状态 - + 计算退款金额(统一方法)