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, };