From af5c3906060d23d02f2d1e85af287d1bfc5980b4 Mon Sep 17 00:00:00 2001 From: xiaolipro <2357729423@qq.com> Date: Tue, 24 Sep 2024 10:16:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E8=84=8F=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/SJZY.Track.Application/Helpers/ForewarningHelper.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {