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-26 22:18:26 -07:00
2026-03-12 00:52:50 -07:00
2026-05-06 03:09:15 -07:00
2026-03-03 09:32:22 -08:00
2025-07-24 03:06:44 +09:00
2025-04-25 15:09:31 +09:00
2025-04-25 15:09:31 +09:00
2025-07-07 14:26:53 -04:00
2026-06-02 20:23:45 -07:00
2026-06-02 20:23:45 -07:00
2026-05-27 00:57:21 -07:00
2026-03-12 06:23:11 -07:00
2025-11-13 14:49:25 +08:00
2025-11-06 15:35:49 +08:00
2026-04-26 21:12:22 -07:00
2026-05-01 05:24:11 -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
2026-05-10 10:41:50 -07:00
2026-05-07 02:21:35 -07:00
2026-05-30 03:27:04 -07:00
2026-05-30 03:27:04 -07:00
2026-05-28 20:46:37 -07:00
2025-08-26 14:39:54 -04:00
2025-04-25 15:09:31 +09:00
2025-08-26 14:39:54 -04:00
2026-03-04 22:02:42 -08:00
2026-03-06 00:15:35 -08:00
2026-03-14 12:41:52 +08:00
2026-03-04 22:02:42 -08:00
2025-04-25 15:09:31 +09:00
2026-05-08 06:19:59 -07:00
2025-09-07 11:59:34 -04:00
2025-08-26 14:39:54 -04:00
2026-05-18 03:02:35 -07:00
2026-05-18 03:02:35 -07:00
2026-03-19 01:55:01 -07:00
2026-05-26 08:36:25 -07:00
2026-03-04 22:02:42 -08:00
2026-03-12 03:05:34 -07:00
2025-08-15 12:30:21 -04:00
2025-04-25 15:09:31 +09:00
2026-03-06 21:58:29 -08:00
2026-03-03 09:32:22 -08:00
2025-04-25 15:09:31 +09:00
2025-04-25 15:09:31 +09:00
2025-04-25 15:09:31 +09:00
2025-12-11 23:53:32 +08:00
2026-03-04 22:02:42 -08:00
2026-04-26 21:12:22 -07:00