From efd1ce348a909af266df5bdcc39517bb2dfe4faf Mon Sep 17 00:00:00 2001 From: long2ice Date: Tue, 14 Jul 2026 01:11:03 +0800 Subject: [PATCH] fix: use match_address when locking exclusive wallets LockTradeAddress queried bep_order with match_addr (wallet column), causing Error 1054 and breaking exclusive address checks. --- app/model/order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/model/order.go b/app/model/order.go index bf67ce4..7ccdb74 100644 --- a/app/model/order.go +++ b/app/model/order.go @@ -420,7 +420,7 @@ func LockTradeAddress(wallets []Wallet, t TradeType) (Wallet, string, error) { status := []int{OrderStatusConfirming, OrderStatusWaiting} for _, w := range wallets { var o Order - Db.Where("match_addr = ? and status in (?) and trade_type = ? and address_locked = ?", w.GetMatchAddr(), status, t, true).Order("id desc").Limit(1).Find(&o) + Db.Where("match_address = ? and status in (?) and trade_type = ? and address_locked = ?", w.GetMatchAddr(), status, t, true).Order("id desc").Limit(1).Find(&o) if o.ID == 0 { return w, zero, nil }