功能: - 新增 WalletRetryTask 定时任务,每分钟扫描一次 - 自动检测超过 60 秒仍在 generating/deriving 状态的钱包 - 自动检测状态为 failed 的钱包生成 - 幂等重试机制,最多 10 分钟内持续重试 - 记录重试次数和时间戳 技术实现: - 使用 @nestjs/schedule 的 Cron 装饰器 - 在 UserAccount 聚合根中添加 createWalletGenerationEvent() 方法 - 在 RedisService 中添加 keys() 方法支持模式匹配扫描 - 通过重新发布 UserAccountCreatedEvent 触发幂等重试 相关需求: - 用户手机号验证成功后立即创建账号 - 钱包生成在后台异步进行 - 失败后自动重试,无需用户感知 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude | ||
| api-gateway | ||
| infrastructure | ||
| mpc-system | ||
| scripts | ||
| services | ||
| .env.windows | ||
| docker-compose.windows.yml | ||