feat: 小程序脚本首页重构 + 社交数据导入 + TTS 播放优化

- 后端:新增社交数据导入/审批/洞察生成 API(SocialContent/SocialInsight)
- 后端:优化脚本上下文服务,TTS 服务增强
- 小程序:重构脚本首页布局,新增社交导入页面
- 小程序:新增 useTtsPlayer composable,移除旧 ScriptAudioPlayer 组件
- 小程序:新增社交导入服务,优化请求服务
- SQL:新增社交数据导入建表脚本
- 文档:补充设计文档和实施计划

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-20 07:18:02 +08:00
parent 83cc32999b
commit ee5a6aba5d
50 changed files with 5723 additions and 1246 deletions
+2 -1
View File
@@ -251,7 +251,7 @@ const fetchRandomInspirations = async (size = 3) => {
}
}
const generateScriptFromInspiration = async ({ prompt, style, length }) => {
const generateScriptFromInspiration = async ({ prompt, style, length, useSocialInsights = true }) => {
try {
const profile = state.userProfile || state.registrationData
const res = await epicScriptService.generateFromInspiration({
@@ -260,6 +260,7 @@ const generateScriptFromInspiration = async ({ prompt, style, length }) => {
length,
characterInfo: epicScriptService.buildCharacterInfo(profile),
lifeEventsSummary: epicScriptService.buildLifeEventsSummary(state.events, profile),
useSocialInsights,
source: 'mini-program'
})
await fetchScripts()