当 planting.order.paid 事件中 treeCount 为 undefined 时: - GlobalStatsRepository: 使用 ?? 0 提供默认值 - RealtimeStatsRepository: 使用 ?? 0 提供默认值 - 避免 Prisma upsert 因 undefined increment 值而报错 问题原因:planting-service 发送的事件数据中 treeCount 可能为 undefined 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude | ||
| api-gateway | ||
| infrastructure | ||
| mpc-system | ||
| scripts | ||
| services | ||
| .env.windows | ||
| docker-compose.windows.yml | ||