Files
beige/backend/app/services
yangqianqian ff21116ff8 A8: 文案按A/B/C三套正交叙事生成,避免套路化重复
- constants: 新增 TEXT_NARRATIVE_BY_STRATEGY(A痛点/B场景/C成分),与图片侧同轴
- build_prompt: 加 strategy_narrative 参数并注入 prompt
- text_variants: 全链路透传(含优化轮)
- run_text_generation: 改循环三套,text_count均摊(divmod余前补),跨套去重,打_strategy标记
- TextCandidate: 加 strategy String(4) 字段 + 迁移021(已upgrade head)
- packaging: 打包按strategy精准配对文图(texts_by_strategy映射+三层兜底)
- SSE text_candidate 事件携带 strategy

独立agent交叉验证7改造点全过,边界(text_count<3/无别名/不截断)无must-fix

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 10:00:47 +08:00
..

app/services/

业务逻辑层占位,按模块:

  • auth_service.py # JWT签发/验证
  • workspace_service.py # workspace权限校验
  • product_service.py # 产品档案业务逻辑
  • task_service.py # 任务状态机流转
  • review_service.py # 审核流转+飞轮信号写入
  • preference_aggregator.py # 飞轮实时聚合最近50条→prompt片段
  • preference_collector.py # 三信号入口写入 preference_events
  • banned_word_checker.py # 违禁词三级扫描(🟢改写/🟡提示/🔴拦截)
  • package_exporter.py # 生成达人素材交付包
  • image_postprocessor.py # 去水印后处理(重编码+削像素水印)