问题:planting-service 发送的 PlantingOrderPaid 事件中的 userId 是 订单表的自增主键(如 15),而不是 referral-service 中的真实 user_id (如 25122600006)。这导致 handleTreePlanted 方法查询团队统计时 返回 null,社区权益无法被自动激活。 修复:改用事件中的 accountSequence 字段查询团队统计,因为 accountSequence 是跨服务一致的用户标识。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| external | ||
| kafka | ||
| persistence | ||
| redis | ||