Files
hi-server/internal/logic/public/user
架构师 18df7e4d6b 修复(#139): 申请提现改为事务内 FOR UPDATE 直读 DB
- commissionWithdrawLogic: 不再用 ctx 中可能陈旧的 cache user 做余额校验
- 在事务内 FOR UPDATE user 行 + 求和 pending → 用 DB 真值校验 commission
- 与 approveWithdrawal 对齐数据源,消除 cache/DB 不一致导致的漏报
- 新增 4 个 sqlmock 单测:陈旧 cache 拒绝、happy path、pending 吃光、user 丢失

Co-authored-by: multica-agent <github@multica.ai>
2026-06-01 22:29:10 -07:00
..
2026-05-06 03:09:15 -07:00
x
2026-04-26 21:12:22 -07:00
2026-03-03 09:32:22 -08:00
2026-03-03 09:32:22 -08:00
2026-03-05 23:31:45 -08:00
x
2026-05-10 10:41:50 -07:00
2026-03-04 22:02:42 -08:00
x
2026-05-08 06:19:59 -07:00
2025-08-15 12:30:21 -04:00
2026-03-06 21:58:29 -08:00
x
2026-04-26 21:12:22 -07:00