From f4c90e86064d40b4710450d406df6fd8e41d4f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=82=A5=E7=BE=8A?= <1048382248@qq.com> Date: Mon, 20 Apr 2026 17:46:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E9=98=BF=E9=87=8C?= =?UTF-8?q?=E4=BA=91vod=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Learn.VideoAnalysis.API/.config/dotnet-tools.json | 13 +++++++++++++ Learn.VideoAnalysis.API/Program.cs | 1 + VideoAnalysisCore/Controllers/LJZK_Controller.cs | 5 +++-- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 Learn.VideoAnalysis.API/.config/dotnet-tools.json diff --git a/Learn.VideoAnalysis.API/.config/dotnet-tools.json b/Learn.VideoAnalysis.API/.config/dotnet-tools.json new file mode 100644 index 0000000..3a299d9 --- /dev/null +++ b/Learn.VideoAnalysis.API/.config/dotnet-tools.json @@ -0,0 +1,13 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-ef": { + "version": "10.0.6", + "commands": [ + "dotnet-ef" + ], + "rollForward": false + } + } +} \ No newline at end of file diff --git a/Learn.VideoAnalysis.API/Program.cs b/Learn.VideoAnalysis.API/Program.cs index aa97303..f067cb9 100644 --- a/Learn.VideoAnalysis.API/Program.cs +++ b/Learn.VideoAnalysis.API/Program.cs @@ -52,6 +52,7 @@ namespace Learn.VideoAnalysis.API builder.Services.AddHttpClient(); builder.Services.AddSqlSugarExpand(); builder.Services.AddRedisExpand(false); + builder.Services.AddAlibabaCloudVod(); builder.Services.AddCoravel(); builder.Services.AddCorsExpand(); diff --git a/VideoAnalysisCore/Controllers/LJZK_Controller.cs b/VideoAnalysisCore/Controllers/LJZK_Controller.cs index 9bcdef7..64a580d 100644 --- a/VideoAnalysisCore/Controllers/LJZK_Controller.cs +++ b/VideoAnalysisCore/Controllers/LJZK_Controller.cs @@ -45,7 +45,9 @@ namespace VideoAnalysisCore.Controllers public LJZK_Controller(IMapper mp, Repository nodesubscriptionDB, Repository videoTaskDB = null, Repository videoKonwPointDB = null - , Repository nodePackageInfoDB = null, Repository videoQuestionDB = null, Repository videoQuestionKonwDB = null, Repository courseInfoDB = null, RedisManager redisManager = null, Repository videoTaskStageDB = null, Client vodClient = null) + , Repository nodePackageInfoDB = null, Repository videoQuestionDB = null, + Repository videoQuestionKonwDB = null, Repository courseInfoDB = null, + RedisManager redisManager = null, Repository videoTaskStageDB = null, Client vodClient = null) { this.mp = mp; this.nodesubscriptionDB = nodesubscriptionDB; @@ -406,7 +408,6 @@ namespace VideoAnalysisCore.Controllers } catch (Exception ex) { - return BadRequest("获取存储的视频信息失败!" + ex.Message); }