fix(viral-video): pre_trusted_images 反序列化兼容脏数据 #2179
Reference in New Issue
Block a user
Delete Branch "fix/2175-pre-trusted-images-serde-bug"
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?
背景
staging 验证发现 pre_trusted_images 在DB中被读成字符数组 [n,u,l,l](list("null") 的结果),导致视频生成阶段无法使用预热产物。
根因
_to_domain 中
list(getattr(model, "pre_trusted_images", None) or [])在以下情况产生字符数组:修复
_to_domain 增加类型判断:
配合 #2178 的 API 响应字段透传,部署后新预热的URL将正确传递给视频生成阶段。
Ref: #2175 #2178
🚀 预览环境已部署
🗑️ 预览环境已清理
PR #2179 已关闭或合并,对应的预览环境已被清理。