保险
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m20s

This commit is contained in:
TJH 2026-06-11 10:21:37 +08:00
parent 469aec1e3a
commit 67167b8307

View File

@ -222,6 +222,9 @@ export class SlotScene extends Component {
let curBalanceData = await callGameBalanceApi({ GameId: getGameId() }) let curBalanceData = await callGameBalanceApi({ GameId: getGameId() })
let curBalance = curBalanceData.Balance 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) { 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() }); this.showErrorTip(2, "", () => { this.slotBar.onConfirmErr2() });
@ -230,6 +233,7 @@ export class SlotScene extends Component {
return return
} }
let msg = !this.isFeatureBuySpin && buyType == 0 ? let msg = !this.isFeatureBuySpin && buyType == 0 ?
{ Bet: this.slotBar.getBet(), IsDouble: this.isDoubleWin, } { Bet: this.slotBar.getBet(), IsDouble: this.isDoubleWin, }
: { Bet: this.slotBar.getBet(), IsBuy: true, BuyType: buyType, IsDouble: this.isDoubleWin, }; : { Bet: this.slotBar.getBet(), IsBuy: true, BuyType: buyType, IsDouble: this.isDoubleWin, };