This commit is contained in:
parent
469aec1e3a
commit
67167b8307
@ -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, };
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user