fix: _download_video_assets 允许仅传 asset_ids(模板预览模式) #1213
Reference in New Issue
Block a user
Delete Branch "fix/download-assets-allow-asset-ids-only"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
预览生成(#1197)是模板模式,只传 template_id + asset_ids,不传 project_id/asset_library_id。Worker 执行
_download_video_assets时被过早的校验挡住:修复
(not library and not project)改为(not library and not project and not asset_ids)mode_desc兜底:三者都空时显示"指定素材"而非"项目 None"测试
🚀 预览环境已部署
【阻塞级判定】
📊 审查概览
🔴 阻塞级问题(必须修复)
无
💡 改进建议(不阻塞合并)
无
✅ 良好实践
asset_ids参数的判空校验,确保了在通过 ID 列表下载素材时的参数合法性,逻辑严密。Raises描述,保持代码与文档的一致性。mode_desc的生成逻辑,使得在三种不同的下载模式下(素材库、项目、指定素材),错误日志都能准确反映当前上下文,便于排查问题。🤖 由 AI 代码审查机器人自动生成 | 2026-08-01 13:52:59 | 模型:
🗑️ 预览环境已清理
PR #1213 已关闭或合并,对应的预览环境已被清理。