Go to file
hailin 9b9427d6a8 fix(identity-service): 修复 seed 脚本会清除所有用户数据的严重 bug
问题:每次部署 identity-service 时,seed 脚本会执行 deleteMany() 删除所有用户数据
修复:
- 检查现有用户数量,如果 > 5 则跳过 seed(保护生产数据)
- 移除所有 deleteMany() 调用
- 使用 upsert 确保系统账户存在而不是先删后建
- 管理员账户只在不存在时创建

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 03:28:59 -08:00
.claude fix(mobile-app): 修复注册后"审核中"状态不更新的问题 2025-12-22 01:59:58 -08:00
backend fix(identity-service): 修复 seed 脚本会清除所有用户数据的严重 bug 2025-12-22 03:28:59 -08:00
docs docs: 添加 GENESIS 系统推荐码使用指南 2025-12-20 20:58:04 -08:00
frontend fix(withdraw): 修复提取功能短信验证和手续费计算 2025-12-22 03:14:22 -08:00
kubernetes . 2025-11-25 10:29:24 +08:00
scripts . 2025-11-25 10:29:24 +08:00
tests . 2025-11-25 10:29:24 +08:00
.gitignore chore: add .claude to gitignore 2025-12-09 18:37:23 -08:00
README.md first commit 2025-11-23 21:21:44 -08:00
SEED01-qrcode.png fix: 短信超时返回成功状态避免前端报错 2025-12-21 20:55:31 -08:00
docker-compose.yml first commit 2025-11-23 21:21:44 -08:00

README.md