Commit Graph

3 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 aeaa50e89e fix: 审计发现的问题修复
API一致性修复:
- C1: 新增organization.py路由(/api/v1/organization/*)
- C2: 修复suggestions API路径(/api/v1/brands/*而非/api/v1/suggestions/*)
- H7: 修复platforms路由双重前缀(/api/v1/platforms而非/api/v1/api/platforms)

密钥管理改进:
- H3: APIKeyManager支持双密钥(dict格式),文心一言适配器使用KeyManager
- H8: 新增APIKeyFilter日志过滤器,拦截key=和Bearer token

异常处理改进:
- H1: batch_query.py改为httpx.HTTPError分层处理
- H1: database.py改为SQLAlchemyError并抛出ConnectionError
- H1: lifecycle.py和usage_tracker添加日志记录

测试: 764 passed
2026-05-25 23:33:25 +08:00
chiguyong 67d7578550 feat: P1核心功能验证完成 - 迁移/平台对接/调度器/配置/Agent监控
P1-1 数据库迁移同步:
- 修复迁移冲突(重复版本号)
- 添加缺失模型导入
- 创建同步迁移文件
- alembic check通过

P1-2 多平台API对接验证:
- 创建22个测试用例
- 5种引用提取方式验证
- 平台健康检查API (/api/v1/platforms/health)

P1-3 定时调度器验证:
- 10个测试用例全部通过
- 添加手动触发支持(run_job_now)
- 2个注册任务(check_queries/check_pending_tasks)

P1-4 配置API Keys:
- .env.example完整配置
- LLM提供商工厂函数验证
- 限流器配置测试

P2-1 Agent监控Dashboard:
- 前端页面(统计摘要/筛选/详情)
- API客户端方法
- 执行历史和日志展示
2026-05-23 22:02:49 +08:00