From 966eee0b65a2b15ab29e9c5e5de31c666da9a1fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BC=9F?= <421281095@qq.com> Date: Mon, 25 Aug 2025 14:23:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=88=9B=E5=BB=BA=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E7=AE=97=E6=B3=95=E5=AE=9E=E4=BE=8B=E5=85=B3=E8=81=94?= =?UTF-8?q?=EF=BC=88=E8=A1=A5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OpenAuth.App/ServiceApp/ManageApp.cs | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/OpenAuth.App/ServiceApp/ManageApp.cs b/OpenAuth.App/ServiceApp/ManageApp.cs index 41d02ba..d667976 100644 --- a/OpenAuth.App/ServiceApp/ManageApp.cs +++ b/OpenAuth.App/ServiceApp/ManageApp.cs @@ -421,15 +421,18 @@ namespace OpenAuth.App.ServiceApp task.PlanExecuteDuration = airLine.ScheduleTime; task.ExpectedFileCount = airLine.PictureTotal; var flag = await db.LasaTask.InsertAsync(task); - var aiInspection = new LasaAiInspection + if (!string.IsNullOrEmpty(task.AIInspection)) { - Id = Guid.NewGuid().ToString(), - TaskId = task.Id, - AlgoInstanceId = task.AlgoInstanceId, - WarningTitle = task.WarningTitle, - WarningContent = task.WarningContent - }; - await db.LasaAiInspection.InsertAsync(aiInspection); + var aiInspection = new LasaAiInspection + { + Id = Guid.NewGuid().ToString(), + TaskId = task.Id, + AlgoInstanceId = task.AlgoInstanceId, + WarningTitle = task.WarningTitle, + WarningContent = task.WarningContent + }; + await db.LasaAiInspection.InsertAsync(aiInspection); + } // //{"0":"立即任务","1":"定时任务", var type = task.TaskType; if (type.Equals(1) || type.Equals(2)) // 定时任务