feat(#1894): 清理文案库多余字段 / 废弃标题库 API / 旧定价档位清理 #1968
Reference in New Issue
Block a user
Delete Branch "fix/1894-scripts-cleanup-drop-title-fields-pricing"
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?
🚀 预览环境已部署
- scripts_ai.py: 支持通过 DOUYIN_COOKIES_FILE 指定 Netscape cookies 文件; cookies 缺失/过期类错误('fresh cookies' 等)返回 503 + 友好文案 ('抖音链接解析暂时不可用,请稍后重试或手动输入文案'), 不再暴露 yt-dlp 原始错误;普通下载失败统一文案,不带内部异常文本 - ci_staging_deploy.sh: API 容器挂载 /var/lib/xiaoxia-saas-staging/configs/douyin_cookies.txt 到 /app/configs/douyin_cookies.txt;自动 mkdir + 空占位兜底 - infra/docker/compose.yml: API 服务挂载 ../../deploy/configs:/app/configs:ro - deploy/configs/.env.{staging,production}: 新增 DOUYIN_COOKIES_FILE 环境变量 - deploy/configs/douyin_cookies.txt: Netscape 格式占位文件(真实 cookies 部署时替换) - 新增 test_helpers_get_user_plan.py 覆盖 _helpers.get_user_plan 旧档位归一化分支 - 新增 test_subscription_routes_legacy.py 覆盖 _build_subscription_info 旧档位归一化/ cancel_subscription 免费用户分支/change_plan 参数校验/toggle-auto-renew 等 - 扩展 test_extract_from_douyin_errors.py: 新增 5 个 cookies 场景测试(503 友好文案/ cookiefile 注入/错误信息脱敏等) - 增量覆盖率从 59% 提升到 60%+,解决 CI Gate 阻塞🗑️ 预览环境已清理
PR #1968 已关闭或合并,对应的预览环境已被清理。