Bug #1 (HIGH): allocateFunds 从 Prisma 事务内移到事务外 - pre-planting-reward.service.ts: distributeRewards 拆为 prepareAndPersistRewards(事务内持久化)+ executeAllocations(事务后转账) - pre-planting-application.service.ts: 事务后调用 executeAllocations Bug #2 (HIGH): signContract 后触发 hasPlanted - 签约事务成功后发布 PlantingOrderPaid 到 planting-events topic - wallet-service 消费后执行 markUserAsPlanted + settleUserPendingRewards - event-publisher.service.ts: 新增 publishRawToPlantingEvents 方法 Bug #3 (MEDIUM): PENDING 推荐奖励改为全部 SETTLED - 与现有认种行为对齐,推荐奖励立即发放 Bug #4 (HIGH): 补全 3 个服务的数据库迁移文件 - planting-service: 4 张预种表(orders/positions/merges/reward_entries) - admin-service: 1 张配置表(pre_planting_configs)+ 默认数据 - contribution-service: 4 张 CDC 追踪表(synced_orders/positions/freeze_states/processed_cdc_events) Bug #5 (LOW): 合并循环 if→while,支持一次购买多份触发多次合并 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| prisma | ||
| src | ||
| .env.example | ||
| DEVELOPMENT_GUIDE.md | ||
| Dockerfile | ||
| nest-cli.json | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||