1. 事件流重构:将 planting.order.paid 事件从 planting-service 移至 referral-service 发送 - 确保统计数据更新后再触发奖励计算,避免竞态条件 - planting-service 只发送 planting.planting.created 事件(包含订单信息) - referral-service 处理完统计更新后转发 planting.order.paid 给 reward-service 2. 修复 addPersonalPlanting 方法: - 原代码错误地更新 _totalTeamCount(团队人数)而非 _teamPlantingCount(团队认种数) - 导致 subordinateTeamPlantingCount 计算错误,权益无法正确分配 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| backend | ||
| docs | ||
| frontend | ||
| kubernetes | ||
| scripts | ||
| tests | ||
| .gitignore | ||
| README.md | ||
| docker-compose.yml | ||