问题背景: - 原实现使用 userId 查找钱包进行解冻操作 - userId 来自外部 identity-service,存在变化风险 - 如果 userId 发生变化,可能导致解冻到错误的钱包 解决方案: - 优先使用 accountSequence 查找钱包(wallet-service 内部主键,稳定可靠) - 保留 userId 作为兜底查找方式,确保向后兼容 - 增加钱包找不到时的详细错误日志 改动点: - withdrawal-status.handler.ts: handleWithdrawalFailed() 方法 - 与认种(planting)的钱包查找逻辑保持一致 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| docs | ||
| prisma | ||
| src | ||
| test | ||
| .env.example | ||
| .gitignore | ||
| Dockerfile | ||
| deploy.sh | ||
| nest-cli.json | ||
| package.json | ||
| tsconfig.build.json | ||
| tsconfig.json | ||