v3计划内容上传

This commit is contained in:
2026-07-04 20:36:26 +08:00
parent def3ed5175
commit 743d242d52
23 changed files with 291 additions and 53 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ User (Owner A) generates token → Shop scans/confirms (you)
## Hard rules
- Redis token: `redeem:token:{token}` TTL 300s
- Amount: `0 < amount ≤ min(balance, 500)`
- Amount: direct redeem `0 < amount ≤ total ACTIVE benefit balance`; document redeem `0 < amount ≤ document balance`
- Transaction + coupon `version` optimistic lock
- **Never** `prisma.order.update` in redeem module