自动修改

This commit is contained in:
2026-07-12 07:50:27 +08:00
parent b74e4e4fe5
commit d0f0fa09af
18 changed files with 117 additions and 66 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ User (Owner A) generates token → Shop scans/confirms (you)
## Hard rules
- Redis token: `redeem:token:{token}` TTL 300s
- Redis token: `redeem:token:{token}` TTL **180s**V3.0 PRD 3 分钟)
- 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
+1 -1
View File
@@ -48,4 +48,4 @@ export class TradeController {
- 埋点 → `log_user_analytics`;业务审计 → `common_event`
- 支付 → `log_third_party` + `user_order.pay_*`(无 payments 表)
- 核销码 → Redis 5min无 DB 表
- 核销码 → Redis 3min`REDEEM_TOKEN_TTL_SECONDS`
+1 -1
View File
@@ -20,7 +20,7 @@ V2 手册 §五(v3.128 表)。schema 与手册保持一致。
## 关键约定
- 无 `payments` / `user_order_item` / `redeem_tokens` 表
- 核销码仅 Redis 5 分钟
- 核销码仅 Redis **3 分钟**`REDEEM_TOKEN_TTL_SECONDS=180`
- 支付流水 → `log_third_party` + `user_order.pay_*`
- 业务事件 → `common_event`;埋点 → `log_user_analytics`
@@ -48,7 +48,7 @@ H5 三端引用 `@dukang/shared-ui``tokens.css`)。admin-web 使用 Ant Des
### 订单 5 Tab
```
all | pending_pay | pending_ship | pending_receive | completed
待付款 | 已付款 (`paid`) | 已完成
```
## h5-shop 路由(刘景尧)
@@ -112,7 +112,7 @@ all | pending_pay | pending_ship | pending_receive | completed
## UI 硬约束
- C 端订单 **5 Tab**pending_ship
- C 端订单 **3 Tab**`pending_pay` / `paid` / `completed`
- 个人中心无会员等级(V1 不做会员体系)
- 清香型 4 SKU 可购;酱香/浓香灰态
- 门店列表仅 `OPEN` 状态