From fea9c6095b3bbcea97cf717305c950577bc05468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Thu, 4 Jun 2026 21:28:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E4=BF=AE=E6=94=B9=E8=B5=9B?= =?UTF-8?q?=E4=BA=8B=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Application/Event/EventService.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/YD_Event.Application/Event/EventService.cs b/YD_Event.Application/Event/EventService.cs index 69eb4a6..50e19fc 100644 --- a/YD_Event.Application/Event/EventService.cs +++ b/YD_Event.Application/Event/EventService.cs @@ -522,8 +522,6 @@ public class EventService : BaseService, ITransient var eventInfo = await _repository.GetByIdAsync(input.Id); if (eventInfo == null) throw new InvalidOperationException("赛事不存在"); - var oldEventName = eventInfo.EventName; - // 将前端传过来的Code转换为对应的Id var provinceId = eventInfo.ProvinceId; var cityId = eventInfo.CityId; @@ -546,7 +544,6 @@ public class EventService : BaseService, ITransient } input.Adapt(eventInfo); - eventInfo.EventName = oldEventName; // 赛事名称不允许修改 eventInfo.ProvinceId = provinceId; eventInfo.CityId = cityId; eventInfo.DistrictId = districtId;