rwadurian/backend/services/wallet-service/src
hailin 0e85c2fd23 fix(wallet-service): 修复社区权益根据 targetId 正确分配
问题:社区权益(COMMUNITY_RIGHT)无论 targetId 是什么,都强制分配到
总部账户 S0000000001,导致社区授权人无法在流水明细中看到社区权益。

修复:
- 将 allocateToHeadquartersCommunity 方法重命名为 allocateCommunityRight
- 根据 targetId 判断分配目标:
  - D 开头(用户账户): 分配到社区授权人账户
  - S 开头或 '1'(系统账户): 分配到总部社区账户
- 更新流水备注以区分用户分配和总部分配

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 07:20:22 -08:00
..
api feat(mobile-app): 流水明细支持显示权益类型和详情 2025-12-26 03:57:35 -08:00
application fix(wallet-service): 修复社区权益根据 targetId 正确分配 2025-12-26 07:20:22 -08:00
config feat(wallet-service): add Redis caching for wallet queries 2025-12-06 18:37:13 -08:00
domain fix(wallet-service): 添加钱包乐观锁防止并发修改 2025-12-25 20:44:55 -08:00
infrastructure chore(wallet-service): 移除已执行的OTP修复脚本 2025-12-25 20:55:08 -08:00
shared feat(wallet/mpc): 增强提现和充值流程可靠性 2025-12-15 19:47:20 -08:00
app.module.ts feat: 省市团队账户及待领取奖励逐笔追踪 2025-12-13 03:32:47 -08:00
main.ts feat(sync): implement Outbox Pattern for reward-service to wallet-service sync 2025-12-10 23:26:49 -08:00