fix(video-pipeline): 自动修复上传前引用的候选图片路径并修复音频时长精度
在 `phase-upload` 中添加 `autoFixFile` 逻辑,当 `item.file` 指向不存在的文件时,自动从 `candidates` 中匹配实际存在的文件并更新 `item.file`,避免上传阶段因用户手动换图删除候选文件而导致失败。同时修复 `capcut-timeline` 音频/视频时长计算,使用 `Math.round` 避免微秒级浮点精度问题。
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"imageStylePrompt": "prompts/图片提示词.md",
|
||||
"videoStylePrompt": "prompts/视频提示词.md",
|
||||
"references": [
|
||||
{ "file": "0_3.png", "url": "https://muye-ai-chat.oss-cn-hangzhou.aliyuncs.com/tmp/0_3.png" }
|
||||
{ "file": "mj-image.jpg", "url": "https://muye-ai-chat.oss-cn-hangzhou.aliyuncs.com/tmp/mj-image.jpg?OSSAccessKeyId=LTAI5tPV9Ag3csf41GZjaLTA&Expires=1809282229&Signature=knoxb7C0u133hwslYW4MhrO2KOs%3D" }
|
||||
],
|
||||
"capcut": {
|
||||
"effects": [],
|
||||
|
||||
BIN
accounts/瞬息实验室/references/mj-image.jpg
Normal file
BIN
accounts/瞬息实验室/references/mj-image.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 396 KiB |
Reference in New Issue
Block a user