From 14e6d42c718baab005afa53847aa7ffacf9a5ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Thu, 5 Nov 2026 09:11:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=BA=E6=AC=A1=E6=98=BE=E7=A4=BA=E5=85=BC?= =?UTF-8?q?=E5=AE=B9+=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/Client/CheckinScheduleService.cs | 1 + YD_Event.Application/Judge/JudgeScoringController.cs | 2 +- YD_Event.Application/Workbench/WorkbenchController.cs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/YD_Event.Application/Client/CheckinScheduleService.cs b/YD_Event.Application/Client/CheckinScheduleService.cs index 45053ff..d9fb755 100644 --- a/YD_Event.Application/Client/CheckinScheduleService.cs +++ b/YD_Event.Application/Client/CheckinScheduleService.cs @@ -262,6 +262,7 @@ public class CheckinScheduleService : ITransient var normalized = sessionName.Trim(); if (normalized.StartsWith('第') && normalized.EndsWith('场')) normalized = normalized[1..^1].Trim(); + if (normalized.EndsWith('+')) normalized = normalized[..^1].Trim(); return int.TryParse(normalized, out var value) && value > 0 ? value : fallback; } diff --git a/YD_Event.Application/Judge/JudgeScoringController.cs b/YD_Event.Application/Judge/JudgeScoringController.cs index 83a5d7e..eb812ac 100644 --- a/YD_Event.Application/Judge/JudgeScoringController.cs +++ b/YD_Event.Application/Judge/JudgeScoringController.cs @@ -1693,7 +1693,7 @@ public class JudgeScoringController : IDynamicApiController private static int GetImportedSessionOrder(string? sessionName, int fallback) { if (string.IsNullOrWhiteSpace(sessionName)) return fallback; - var match = Regex.Match(sessionName, @"^\s*(?:第\s*)?(?\d+)(?:\s*场)?\s*$", + var match = Regex.Match(sessionName, @"^\s*(?:第\s*)?(?\d+)(?:\s*\+)?(?:\s*场)?\s*$", RegexOptions.CultureInvariant); return match.Success && int.TryParse(match.Groups["sequence"].Value, out var sequence) && sequence > 0 ? sequence diff --git a/YD_Event.Application/Workbench/WorkbenchController.cs b/YD_Event.Application/Workbench/WorkbenchController.cs index b25dbd9..832d466 100644 --- a/YD_Event.Application/Workbench/WorkbenchController.cs +++ b/YD_Event.Application/Workbench/WorkbenchController.cs @@ -2219,7 +2219,7 @@ public partial class WorkbenchController : IDynamicApiController private static int GetImportedSessionOrder(string? sessionName, int fallback) { if (string.IsNullOrWhiteSpace(sessionName)) return fallback; - var match = Regex.Match(sessionName, @"^\s*(?:第\s*)?(?\d+)(?:\s*场)?\s*$", + var match = Regex.Match(sessionName, @"^\s*(?:第\s*)?(?\d+)(?:\s*\+)?(?:\s*场)?\s*$", RegexOptions.CultureInvariant); return match.Success && int.TryParse(match.Groups["sequence"].Value, out var sequence) && sequence > 0 ? sequence