rwadurian/backend/services/authorization-service/src
hailin 16f891b743 fix(authorization): include target-reaching tree in user's reward
修复达标时收益分配错误:达标的那一棵应该归被授权用户所有。

之前逻辑:目标10棵,当前0棵,本次种10棵
- remaining = 10 - 0 = 10
- 上级得到10棵,用户得到0棵 

修复后:
- remaining = max(0, 10 - 0 - 1) = 9(不包括达标那一棵)
- 上级得到9棵,用户得到1棵 

影响:社区、省团队、市团队、省区域、市区域

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 03:53:59 -08:00
..
api feat(authorization): add admin APIs for auth-province and auth-city company 2025-12-11 21:46:44 -08:00
application fix(authorization): include target-reaching tree in user's reward 2025-12-12 03:53:59 -08:00
config refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
domain feat(authorization): remove region matching requirement for team rewards 2025-12-12 03:04:55 -08:00
infrastructure feat(authorization): remove region matching requirement for team rewards 2025-12-12 03:04:55 -08:00
shared fix: add accountSequence to all services and fix compilation errors 2025-12-10 14:14:06 -08:00
app.module.ts feat(reward): add internal APIs for reward distribution 2025-12-10 21:49:13 -08:00
main.ts fix(authorization): add Kafka microservice for @EventPattern to work 2025-12-10 10:08:55 -08:00