优化 直接使用 现有媒体资源url 而不是从阿里云获取

This commit is contained in:
小肥羊 2026-04-20 18:09:18 +08:00
parent f4c90e8606
commit ada94793cb
2 changed files with 3 additions and 0 deletions

View File

@ -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
},

View File

@ -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()