Commit Graph

2 Commits

Author SHA1 Message Date
chiguyong 3711f1641a feat: payment SDK integration, attribution window config, E2E tests, CI integration, rules center tests
- WeChat Pay V3: real API calls with HMAC-SHA256 signing, AES-GCM callback decryption
- Alipay: real API calls with RSA2 signing, WAP payment support
- Both gateways fallback to MockGateway when unconfigured
- Attribution window configurable via ATTRIBUTION_WINDOW_DAYS env var (default 28)
- 30 platform-specific rule test cases (WeChat/Zhihu/Xiaohongshu/Baijiahao/Toutiao/Douyin)
- Fixed clickbait detection bug (character-level to word-level matching)
- E2E tests for diagnosis-strategy and content-monitoring flows
- CI: e2e-test job, bandit security scan, npm audit, performance baseline
2026-06-02 21:50:26 +08:00
chiguyong cbedb09383 feat: 平台规则中心完善 - TDD开发完成
Phase 1: 编写30个测试用例 (RED阶段)
- test_rule_validator.py (10个测试)
- test_sensitive_filter.py (5个测试)
- test_seo_optimizer.py (5个测试)
- test_html_generator.py (5个测试)
- test_content_pipeline.py (5个测试)

Phase 2: 实现5个核心服务 (GREEN阶段)
- RuleValidator: 规则校验服务(标题/内容/AI模式检测)
- SensitiveFilter: 敏感词过滤服务(政治/医疗/金融/低俗)
- SEOOptimizer: SEO优化服务(关键词密度/位置优化)
- HTMLGenerator: HTML生成服务(平台适配HTML/Markdown/纯文本)
- ContentPipeline: Pipeline编排服务(校验→过滤→优化→生成)

Phase 3: 前端集成
- 内容编辑器集成平台选择器
- 规则校验和优化功能
- 多格式复制功能

Phase 4: 文档更新
- 待办事项文档更新
- 标记平台规则中心为已完成
2026-05-23 23:03:42 +08:00