考虑购买游戏以及doublewin的情况
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m18s

This commit is contained in:
TJH 2026-06-08 14:52:23 +08:00
parent 2fc2633c33
commit 1ac74e9b95
2 changed files with 5 additions and 1 deletions

View File

@ -256,6 +256,10 @@ export class SlotBar extends Component {
this.freeSpinBetLabel.string = gold2cash(bet);
}
getdisplayBet() {
return this.displayBet
}
getBet(): number {
return this.curBet;
}

View File

@ -220,7 +220,7 @@ export class SlotScene extends Component {
this.slotBar.setWin(0);
}
if (this.slotBar.getBalance() < this.slotBar.getBet() && !this.isFreeSpin && !this.spinInfo.Frb.Ongoing) {
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.handleErrSpin();