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); }