This commit is contained in:
2026-08-06 17:35:13 +08:00
parent 166a020bed
commit 1029555fdc
+2 -1
View File
@@ -13,6 +13,7 @@ from app.schemas.api_v3.video import (
ApiVideoStatusResponse, ApiVideoStatusResponse,
) )
from app.services.api_v3 import auth_service, generation_service, task_service from app.services.api_v3 import auth_service, generation_service, task_service
from app.services.resource_signed_url_service import build_resource_signed_url
logger = logging.getLogger("videogen") logger = logging.getLogger("videogen")
@@ -139,7 +140,7 @@ async def get_video_status(
from app.schemas.api_v3.video import ApiVideoContent from app.schemas.api_v3.video import ApiVideoContent
from app.config import settings from app.config import settings
# 拼接完整 URL # 拼接完整 URL
video_url = task.video_url video_url = build_resource_signed_url(task.video_url)
if video_url and not video_url.startswith(("http://", "https://")): if video_url and not video_url.startswith(("http://", "https://")):
base = settings.BASE_URL.rstrip("/") base = settings.BASE_URL.rstrip("/")
if video_url.startswith("/"): if video_url.startswith("/"):