From ada94793cb9ebe5bb966059092144b028b6cc99a 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 18:09:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20=E7=8E=B0=E6=9C=89=E5=AA=92=E4=BD=93?= =?UTF-8?q?=E8=B5=84=E6=BA=90url=20=E8=80=8C=E4=B8=8D=E6=98=AF=E4=BB=8E?= =?UTF-8?q?=E9=98=BF=E9=87=8C=E4=BA=91=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Learn.VideoAnalysis.API/appsettings.json | 1 + VideoAnalysisCore/Controllers/LJZK_Controller.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Learn.VideoAnalysis.API/appsettings.json b/Learn.VideoAnalysis.API/appsettings.json index 235afa9..30c4fcf 100644 --- a/Learn.VideoAnalysis.API/appsettings.json +++ b/Learn.VideoAnalysis.API/appsettings.json @@ -56,6 +56,7 @@ }, "DB": { "ConnectionString": "AllowLoadLocalInfile=true;Server=192.168.2.9;User ID=root;Password=qwe123!@#;Port=3306;Database=learn.videoanalysis;CharSet=utf8mb4;pooling=true;SslMode=None", + //"ConnectionString": "AllowLoadLocalInfile=true;Server=rm-2vc20nd3d11g0oh6g2o.rwlb.cn-chengdu.rds.aliyuncs.com;User ID=marking;Password=poiuytPOIUYT098765)(*&^%;Port=3306;Database=learn.videoanalysis;CharSet=utf8mb4;pooling=true;SslMode=None", "SqlType": "MySql", "UpdateTable": false }, diff --git a/VideoAnalysisCore/Controllers/LJZK_Controller.cs b/VideoAnalysisCore/Controllers/LJZK_Controller.cs index 64a580d..d4974f5 100644 --- a/VideoAnalysisCore/Controllers/LJZK_Controller.cs +++ b/VideoAnalysisCore/Controllers/LJZK_Controller.cs @@ -392,6 +392,8 @@ namespace VideoAnalysisCore.Controllers var task = await videoTaskDB.GetByIdAsync(videoTaskId); if (task is null) return BadRequest("²ÎÊýÎÞЧ"); + if(!string.IsNullOrWhiteSpace(task.MediaUrl)) + return Ok(task.MediaUrl); try { var videoInfo = await vodClient.GetPlayInfoAsync(new GetPlayInfoRequest()