Commit Graph

2 Commits

Author SHA1 Message Date
chiguyong b41da42d74 feat(geo): U1-U9 monetization closed loop implementation
U1: GEO diagnosis auto data collection (DataCollectorService + 11 tests)
U2: Free GEO health score public page (HealthScoreAPI + 7 tests)
U3: Onboarding redesign with conversion layer (Step0 + UpgradePrompt + 14 tests)
U4: Real payment integration (WeChat/Alipay gateway + PaymentOrder + 12 tests)
U5: AI content generation & distribution (Publishers + PublishEngine + 11 tests)
U6: Attribution system & ROI reports (AttributionEngine + ROICalculator + 12 tests)
U7: Email integration & Dashboard monetization UI (EmailScheduler + templates + 22 tests)
U8: Integration tests & shared fixtures (monetization flow + fixture consolidation + 12 tests)
U9: E2E smoke tests (HealthScorePage + acquisition/core flow + 4 E2E cases)

Total: 101 new backend tests passing, 4 E2E test cases
All third-party integrations use mock mode by default with config center management
2026-06-01 07:39:05 +08:00
chiguyong 41c2994222 feat: API Key管理+智能路由+用量追踪 - 性价比最优方案
后端(TDD):
- API Key管理服务(加密存储+脱敏显示+优先级+降级策略)
  - 用户Key > 系统Key > 环境变量Key
  - Key可用性检测
  - Key过期处理
- 智能路由服务(分层路由+成本优先级)
  - FREE层: DeepSeek/通义千问/文心一言
  - LOW_COST层: Kimi/豆包/Gemini
  - MID_COST层: 腾讯元宝
  - HIGH_COST层: ChatGPT/Perplexity(用户自备Key)
  - 国内引擎优先
  - 成本估算
  - 推荐引擎组合
- 用量追踪服务(记录+统计+配额预警)
  - 日/周/月汇总
  - 按引擎/品牌统计
  - 成本计算
  - 配额预警(ok/warning/exceeded)
- 36+37=73个测试全部通过
2026-05-25 14:52:31 +08:00