From 0a654c72edf858d6b4b6e4e75f0b6707b84423d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Thu, 23 Oct 2025 17:07:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=90=8E=E7=AB=8B=E9=A9=AC=E5=88=A0=E9=99=A4?= =?UTF-8?q?=20=E8=A7=86=E9=A2=91=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VideoAnalysisCore/AICore/GPT/DeepSeek/DeepSeek_GPT.cs | 8 +------- VideoAnalysisCore/Common/RedisExpand.cs | 8 ++++++++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/VideoAnalysisCore/AICore/GPT/DeepSeek/DeepSeek_GPT.cs b/VideoAnalysisCore/AICore/GPT/DeepSeek/DeepSeek_GPT.cs index 8d6b291..20a8bf5 100644 --- a/VideoAnalysisCore/AICore/GPT/DeepSeek/DeepSeek_GPT.cs +++ b/VideoAnalysisCore/AICore/GPT/DeepSeek/DeepSeek_GPT.cs @@ -554,12 +554,6 @@ namespace VideoAnalysisCore.AICore.GPT.DeepSeek await videoKonwPointDB.InsertRangeAsync(insertData); break; } - else - { - Console.WriteLine(DateTime.Now + $"=>{task} 得分过低/分段长度不匹配 得分{checkRes?.Score} "); - Console.WriteLine(checkRes.Evaluation); - Console.WriteLine(); - } if (questionRes.Any(s => s.KeepTime < 30)) { Console.WriteLine(DateTime.Now + "=>视频分段过短!! 重新进行AI分析"); @@ -618,7 +612,7 @@ namespace VideoAnalysisCore.AICore.GPT.DeepSeek { var taskId = long.Parse(task); - var taskInfo = await videoTaskDB.AsQueryable() + var taskInfo = await videoTaskDB.CopyNew().AsQueryable() .Where(s => s.Id == taskId) .FirstAsync(); if (taskInfo.VideoType != null&& taskInfo.VideoType!=AttachmentsInfoType.无) diff --git a/VideoAnalysisCore/Common/RedisExpand.cs b/VideoAnalysisCore/Common/RedisExpand.cs index c44829a..de5aaa6 100644 --- a/VideoAnalysisCore/Common/RedisExpand.cs +++ b/VideoAnalysisCore/Common/RedisExpand.cs @@ -291,7 +291,15 @@ namespace VideoAnalysisCore.Common it.LastEnum, it.EndTime }).ExecuteCommandAsync(); + try + { + ExpandFunction.DeleteTaskFile(tId); + } + catch (Exception) + { + throw; + } //NewTask(); }