diff --git a/src/SJZY.Track.Application/Helpers/ForewarningHelper.cs b/src/SJZY.Track.Application/Helpers/ForewarningHelper.cs index 455392c6..f91da6db 100644 --- a/src/SJZY.Track.Application/Helpers/ForewarningHelper.cs +++ b/src/SJZY.Track.Application/Helpers/ForewarningHelper.cs @@ -180,7 +180,9 @@ public class ForewarningHelper EndTrackStatusId = x.EndTrackStatusId, EndTrackStatus = statusDic.TryGetValue(x.EndTrackStatusId, out var end) ? end : "", NotifyUsers = JsonConvert.DeserializeObject>(x.NotifyUser) ?? new List(), - NotifyModes = x.NotifyMode.Split(',').Select(int.Parse).ToList(), + NotifyModes = x.NotifyMode.IsNullOrWhiteSpace() + ? new List() + : x.NotifyMode.Split(',').Select(int.Parse).ToList(), }).ToList(), WarningFactors = warning.WarningFactors.Select(x => new WarningFactorWithIdDto {