Files
meijiaka-zy/scripts/fix_cover_background_url.sql
T
小鱼开发 51fc7641b8 fix: 视频创作按钮状态管理、积分计算、封面背景图渲染
- 统一6个步骤任务按钮状态:生成中只disabled,不做文字变化
- 封面设计新增isDesigning loading state
- 进度弹窗去掉(x/y)数量显示
- 视频生成积分统一用配音音频时长口径,新增dubbingAudioDuration
- 封面背景图URL数据修复SQL
- 修复Fabric.js 7.x中originX/originY默认CENTER导致图片位置偏移
- 未选背景图时预览区显示提示
- 背景图加载失败时显示占位文字
2026-05-18 14:09:24 +08:00

16 lines
764 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 修复封面背景图 URL:补充 script_code 子目录
-- ================================================
-- 问题:数据库中 url 字段存的路径缺少按 script_code 分组的子目录
-- 例如:meijiaka-zy/cover_templete/xxx.jpg
-- 应为:meijiaka-zy/cover_templete/bk/xxx.jpgscript_code='bk' 时)
--
-- 执行前建议先备份或预览受影响记录:
-- SELECT id, script_code, url FROM mjk_cover_backgrounds
-- WHERE url LIKE '%/cover_templete/%'
-- AND url NOT LIKE '%/cover_templete/' || script_code || '/%';
UPDATE mjk_cover_backgrounds
SET url = REPLACE(url, '/cover_templete/', '/cover_templete/' || script_code || '/')
WHERE url LIKE '%/cover_templete/%'
AND url NOT LIKE '%/cover_templete/' || script_code || '/%';