Files
hi-server/internal/logic/public/user
shanshanzhong147 ac25eb4d91
Build docker and publish / build (20.15.1) (push) Has been cancelled
Build docker and publish / build (20.15.1) (pull_request) Has been cancelled
修复(#140): 去掉 cancelWithdrawalLogic 在新流程下的重复退款
Squash merge of fix/140-去掉撤销提现的重复退款 (86896cd).

HIF-22 引入 rejectWithdrawal 反查支付网关后,cancelWithdrawalLogic 仍在
事务体内调用 UpdateCommission(+amount),对已在 rejectWithdrawal 中退还
的金额做了二次退款。本次只保留 withdrawal.status -> Cancelled,与
rejectWithdrawal 行为对齐。

新增 cancelWithdrawalLogic_test.go 用 sqlmock 严格断言:撤销 happy path
只触发 BEGIN / SELECT FOR UPDATE / UPDATE withdrawals / COMMIT 四条 SQL,
对 user / system_logs 零读零写。

Co-authored-by: multica-agent <github@multica.ai>
2026-06-02 20:23:45 -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