Dun.Jason il y a 6 mois
Parent
commit
d31914f852
1 fichiers modifiés avec 0 ajouts et 4 suppressions
  1. 0 4
      src/Hotline.Api/Controllers/HotSpotController.cs

+ 0 - 4
src/Hotline.Api/Controllers/HotSpotController.cs

@@ -191,10 +191,6 @@ namespace Hotline.Api.Controllers
                 throw UserFriendlyException.SameMessage("同级别下存在相同名字的事件,不能添加");
             }
             var model = _mapper.Map<EventCategory>(dto);
-            if (model.EventFullName.IndexOf("-")>0)
-            {
-                model.EventFullName = model.EventFullName + "-" + model.EventName;
-            }
             (model.Id,model.EventFullName) = await _eventCategoryRepository.GetNewEventCodeAsync(dto.ParentId,model.EventName);
             await _eventCategoryRepository.AddAsync(model, HttpContext.RequestAborted);
         }