fix(viral-video): 预设音色改用 voices/presets(带Bearer Token)+ 清理analyze-images冗余参数 #2128
Reference in New Issue
Block a user
Delete Branch "fix/2041-preset-voice-auth"
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?
问题1:GET /api/v1/tts/presets 返回 401
_user: AuthenticatedUser = Depends(get_current_user)依赖鉴权(必须 Bearer token),cookie-only 请求被拒。fetchPresetVoices()from @/api/voices(走统一 apiClient,自动带 Bearer token),命中/voices/presets接口(后端注释:「不需要认证」且返回更丰富字段:preview_url/tags/description)。问题2:analyze-images 500 —— 前端Payload核查
apiClient.post("/viral-video/analyze-images", payload)✅ 走Beareri.ossUrl && !i.uploading的已上传图片,映射为OSS URL字符串数组)✅style_template_id: refVideo? undefined : undefined(永远是undefined),JSON.stringify不会带验证
CI全绿,自动审批通过。
🗑️ 预览环境已清理
PR #2128 已关闭或合并,对应的预览环境已被清理。
🚀 预览环境已部署