From ac146bba3854e1a284d970c79108ba4fcf8704bc Mon Sep 17 00:00:00 2001 From: TJH Date: Wed, 10 Jun 2026 16:16:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E7=A7=92=E5=86=85=E7=82=B9=E5=87=BBco?= =?UTF-8?q?nfirm=EF=BC=8C=E5=90=8E=E7=BB=AD=E7=82=B9=E5=87=BB=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E8=B0=83=E7=94=A8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Game/Scripts/SlotBar.ts | 5 +++-- assets/Game/Scripts/SlotScene.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/Game/Scripts/SlotBar.ts b/assets/Game/Scripts/SlotBar.ts index 7c8c6ec..02b54a7 100644 --- a/assets/Game/Scripts/SlotBar.ts +++ b/assets/Game/Scripts/SlotBar.ts @@ -542,7 +542,8 @@ export class SlotBar extends Component { } private isGetBalance: boolean = false; - async onClickBalance(): Promise { + async onClickBalance(isConfirm = false): Promise { + let delay = isConfirm ? 0 : 1 if (this.isGetBalance) return this.isGetBalance = true; try { @@ -555,7 +556,7 @@ export class SlotBar extends Component { } finally { this.scheduleOnce(() => { this.isGetBalance = false; - }, 1) + }, delay) } } diff --git a/assets/Game/Scripts/SlotScene.ts b/assets/Game/Scripts/SlotScene.ts index db610a5..ebc55a5 100644 --- a/assets/Game/Scripts/SlotScene.ts +++ b/assets/Game/Scripts/SlotScene.ts @@ -222,7 +222,7 @@ export class SlotScene extends Component { if (this.slotBar.getBalance() < (buyType == 1 ? this.slotBar.getBet() * this.gameInfo.BuyMul : (this.isDoubleWin ? this.slotBar.getdisplayBet() : this.slotBar.getBet())) && !this.isFreeSpin && !this.spinInfo.Frb.Ongoing) { //余额不足不经过服务器,在客户端拦截 - this.showErrorTip(2, "", () => { this.slotBar.onClickBalance() }); + this.showErrorTip(2, "", () => { this.slotBar.onClickBalance(true) }); this.handleErrSpin(); return }