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;