Files
hi-server/pkg
shanshanzhong147 80751eb8ef
Build docker and publish / build (20.15.1) (push) Failing after 8m28s
fix: move withdrawal commission deduction from application to approval
- commissionWithdrawLogic: remove upfront commission deduction;
  balance check now includes sum of all pending withdrawals to prevent
  double-spending; transaction only creates the withdrawal record (status=0)
- approveWithdrawal: add FOR UPDATE lock on user row, balance check before
  deducting, atomic commission decrement and commission log inside one
  transaction; clear user cache after commit
- rejectWithdrawal: remove commission refund and log — commission was never
  deducted on application under the new flow
- add migration 02150: refund commission for existing status=0 withdrawals
  that were deducted under the old logic; includes rollback script

Co-authored-by: multica-agent <github@multica.ai>
2026-05-24 20:26:42 -07:00
..
2026-03-06 21:58:29 -08:00
2025-04-25 12:08:29 +09:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-17 08:37:36 -07:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-03 09:32:22 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
x
2026-04-26 21:12:22 -07:00
x
2026-05-10 10:41:50 -07:00
2025-04-25 12:08:29 +09:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
x
2026-04-26 21:12:22 -07:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00
2026-03-18 10:28:55 -07:00
2026-03-06 21:58:29 -08:00
2025-04-25 12:08:29 +09:00
2026-03-08 23:22:38 +08:00
2026-03-06 21:58:29 -08:00
2026-03-06 21:58:29 -08:00