swapContributionForMerge 在事务内新增步骤 9f: - 写入 synced_adoptions(original_adoption_id = 20B + mergeId) - 供 SellRestrictionService.isRestricted 的 has_real_tree 判断使用 - upsert 保证幂等,contributionDistributed 由调用方置 true Bug: 合并已完成(contribution_records 正确),但 isRestricted 始终 返回 true,因为 synced_adoptions 中没有 20B+ 记录(virtualAdoption 仅用于计算,未持久化)。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| application | ||
| domain | ||
| infrastructure | ||
| pre-planting | ||
| shared | ||
| app.module.ts | ||
| main.ts | ||