From 67167b830754e0324925e3953db133e4a071adf8 Mon Sep 17 00:00:00 2001 From: TJH Date: Thu, 11 Jun 2026 10:21:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E9=99=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Game/Scripts/SlotScene.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/Game/Scripts/SlotScene.ts b/assets/Game/Scripts/SlotScene.ts index a81b893..234c42e 100644 --- a/assets/Game/Scripts/SlotScene.ts +++ b/assets/Game/Scripts/SlotScene.ts @@ -222,6 +222,9 @@ export class SlotScene extends Component { let curBalanceData = await callGameBalanceApi({ GameId: getGameId() }) let curBalance = curBalanceData.Balance + if (!curBalance) { + curBalance = this.slotBar.getBalance() + } if (curBalance < (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.onConfirmErr2() }); @@ -230,6 +233,7 @@ export class SlotScene extends Component { return } + let msg = !this.isFeatureBuySpin && buyType == 0 ? { Bet: this.slotBar.getBet(), IsDouble: this.isDoubleWin, } : { Bet: this.slotBar.getBet(), IsBuy: true, BuyType: buyType, IsDouble: this.isDoubleWin, };