• v2.6.0 1e52346eb4

    v2.6.0 Stable

    lamnickdavid released this 2026-02-07 14:38:05 +08:00 | 15 commits to main since this release

    功能性修复

    • LatentSync 回退逻辑空实现 → 改为 raise RuntimeError
    • 任务状态接口无用户归属校验 → 添加用户认证依赖
    • 前端 User 类型定义重复 → 统一到 shared/types/user.ts

    性能优化

    • 参考音频列表 N+1 查询 → 使用 asyncio.gather 并发
    • 视频上传整读内存 → 新增 upload_file_from_path 流式处理
    • async 路由内同步阻塞 → httpx.AsyncClient 替换 requests
    • GLM 服务同步调用 → asyncio.to_thread 包装
    • Remotion 渲染启动慢 → 预编译 JS + build:render 脚本

    安全修复

    • 硬编码 Cookie → 移至环境变量 DOUYIN_COOKIE
    • 请求日志打印完整 headers → 敏感信息脱敏
    • ffprobe 使用 shell=True → 改为参数列表
    • CORS 配置 * + credentials → 从 CORS_ORIGINS 环境变量读取

    配置优化

    • 存储服务硬编码路径 → 环境变量 SUPABASE_STORAGE_LOCAL_PATH
    • Remotion execSync 同步调用 → promisified exec 异步
    • LatentSync 相对路径 → 基于 __file__ 绝对路径
    Downloads