From f6267162c12a60714ed489f86e6c120352849814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Mon, 21 Sep 2026 15:07:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E4=BF=A1=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/Client/CheckinController.cs | 4 ++-- YD_Event.Application/Sms/AliyunSmsService.cs | 1 + YD_Event.Core/Options/SmsOptions.cs | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/YD_Event.Application/Client/CheckinController.cs b/YD_Event.Application/Client/CheckinController.cs index 1653b10..aae8068 100644 --- a/YD_Event.Application/Client/CheckinController.cs +++ b/YD_Event.Application/Client/CheckinController.cs @@ -410,7 +410,7 @@ public partial class CheckinController : IDynamicApiController /// 对报名了所选项目的人员发送检录通知;单人失败不影响整体流程。 /// 个人项目:通知运动员本人(从 EventRegistrationPerson 取)。 /// 团队项目:通知教练和领队(从 TeamMember 取,因为报名表中不存储教练/领队的 RegistrationItemId)。 - /// 短信内容:您报名的{赛事名称}正在检录,当前检录至第{x}场次,您所在第{y}场次,请提前前往检录区做好准备。 + /// 短信内容:您报名的{赛事名称}正在检录,当前检录至{项目名称}第{x}场次,您所在第{y}场次,请提前前往检录区做好准备。 /// private async Task<(int Total, int Success, int Failed)> NotifyUnitsAsync( List units, @@ -446,7 +446,7 @@ public partial class CheckinController : IDynamicApiController // 当前检录进度:获取该项目在秩序册中的起始场次 var firstSessionIndex = units.Select(x => x.SessionIndex).FirstOrDefault(x => x > 0); if (firstSessionIndex <= 0) firstSessionIndex = 1; - var currentSession = $"第{firstSessionIndex}场次"; + var currentSession = $"{projectName}第{firstSessionIndex}场次"; var success = 0; var failed = missingPhoneCount; diff --git a/YD_Event.Application/Sms/AliyunSmsService.cs b/YD_Event.Application/Sms/AliyunSmsService.cs index c61b15c..8999ac6 100644 --- a/YD_Event.Application/Sms/AliyunSmsService.cs +++ b/YD_Event.Application/Sms/AliyunSmsService.cs @@ -79,6 +79,7 @@ public class AliyunSmsService : ITransient /// /// 发送检录通知短信;未配置检录模板时返回 false 由调用方降级处理。 /// 模板示例:您报名的${event}正在检录,当前检录至${current},您所在第${order}场次,请提前前往检录区做好准备。 + /// current 参数格式:{项目名称}第{x}场次。 /// public async Task SendCheckinNotice(string phone, string eventName, string currentSession, int sessionOrder) { diff --git a/YD_Event.Core/Options/SmsOptions.cs b/YD_Event.Core/Options/SmsOptions.cs index 5b2e5a9..7c04dbb 100644 --- a/YD_Event.Core/Options/SmsOptions.cs +++ b/YD_Event.Core/Options/SmsOptions.cs @@ -32,7 +32,8 @@ public class SmsOptions : IConfigurableOptions public string VerificationCodeTemplateCode { get; set; } /// - /// 检录通知模板Code;模板格式:您报名的${event}正在检录,当前检录至${current},您所在第${order}场次,请提前前往检录区做好准备。未配置时不发送检录短信。 + /// 检录通知模板Code;模板格式:您报名的${event}正在检录,当前检录至${current},您所在第${order}场次,请提前前往检录区做好准备。 + /// current 参数格式为“{项目名称}第{x}场次”;未配置时不发送检录短信。 /// [ConfigurationKeyName("CheckinNoticeTemplate")] public string? CheckinNoticeTemplateCode { get; set; }