diff --git a/VideoAnalysisCore/AICore/GPT/DeepSeek/DeepSeek_GPT.cs b/VideoAnalysisCore/AICore/GPT/DeepSeek/DeepSeek_GPT.cs index e744bf8..6623516 100644 --- a/VideoAnalysisCore/AICore/GPT/DeepSeek/DeepSeek_GPT.cs +++ b/VideoAnalysisCore/AICore/GPT/DeepSeek/DeepSeek_GPT.cs @@ -317,8 +317,8 @@ namespace VideoAnalysisCore.AICore.GPT.DeepSeek Course_Id = 27; break; } - - //AnalysisVideoQuestions(taskInfo,) + if(taskInfo.VideoType == AttachmentsInfoType.Review) + await AnalysisVideoQuestions(taskInfo); var captionsArr = JsonSerializer.Deserialize(taskInfo.Captions); diff --git a/VideoAnalysisCore/Common/Expand/StartUpExpand.cs b/VideoAnalysisCore/Common/Expand/StartUpExpand.cs deleted file mode 100644 index abe20b4..0000000 --- a/VideoAnalysisCore/Common/Expand/StartUpExpand.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Microsoft.Extensions.Configuration; -using Microsoft.Extensions.DependencyInjection; -using Microsoft.Extensions.Logging; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace VideoAnalysisCore.Common.Expand -{ - public static class StartUpExpand - { - } -} diff --git a/VideoAnalysisCore/Controllers/ApiController.cs b/VideoAnalysisCore/Controllers/ApiController.cs index c9be825..16d26e7 100644 --- a/VideoAnalysisCore/Controllers/ApiController.cs +++ b/VideoAnalysisCore/Controllers/ApiController.cs @@ -168,6 +168,7 @@ namespace VideoAnalysisCore.Controllers TagId = req.TagId, MediaName = req.Name, PPTVideoCode = req.PPTVideoCode, + VideoType=req.VideoType }; // var hashEntries = task.GetType() diff --git a/VideoAnalysisCore/Controllers/Dto/ApiDto.cs b/VideoAnalysisCore/Controllers/Dto/ApiDto.cs index 9960624..d3bf7ff 100644 --- a/VideoAnalysisCore/Controllers/Dto/ApiDto.cs +++ b/VideoAnalysisCore/Controllers/Dto/ApiDto.cs @@ -121,6 +121,10 @@ namespace VideoAnalysisCore.Controllers.Dto /// public TaskTypeEnum? Type { get; set; } /// + /// 视频类型 + /// + public AttachmentsInfoType? VideoType { get; set; } + /// /// 自定义值 任务完成后附带通知 /// public string Tag { get; set; } = string.Empty; diff --git a/VideoAnalysisCore/Controllers/LJZK_Controller.cs b/VideoAnalysisCore/Controllers/LJZK_Controller.cs index 0cc5a9f..b390891 100644 --- a/VideoAnalysisCore/Controllers/LJZK_Controller.cs +++ b/VideoAnalysisCore/Controllers/LJZK_Controller.cs @@ -95,7 +95,7 @@ namespace VideoAnalysisCore.Controllers TaskType = req.TaskType, SubjectType = req.SubjectType, VideoUrl =s.VideoUrl, - CallBackUrl=s.CallBackUrl + CallBackUrl=s.CallBackUrl, }; nodePackages.Add(np); if (s.AttachmentsInfoType == AttachmentsInfoType.PPT) @@ -117,6 +117,7 @@ namespace VideoAnalysisCore.Controllers MediaUrl =s.VideoUrl, MediaName = s.VideoName, PPTVideoCode = pptCode, + VideoType =s.AttachmentsInfoType }); } await nodePackageInfoDB.InsertRangeAsync(nodePackages); diff --git a/VideoAnalysisCore/Model/VideoTask.cs b/VideoAnalysisCore/Model/VideoTask.cs index 09f7620..be5d044 100644 --- a/VideoAnalysisCore/Model/VideoTask.cs +++ b/VideoAnalysisCore/Model/VideoTask.cs @@ -59,6 +59,12 @@ namespace VideoAnalysisCore.Model [SugarColumn(IsNullable = true)] public TaskTypeEnum? Type { get; set; } /// + /// 视频类型 + /// 常规,教研,PPT... + /// + [SugarColumn(IsNullable = true)] + public AttachmentsInfoType? VideoType { get; set; } + /// /// 自定义值 任务完成后附带通知 /// [SugarColumn(Length = 500, IsNullable = true)]