余额不足时的假滚动不触发盘面停止时的逻辑
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m18s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m18s
This commit is contained in:
parent
5822c06368
commit
469aec1e3a
@ -225,7 +225,8 @@ export class SlotScene extends Component {
|
||||
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.handleErrSpin();
|
||||
this.handleErrSpin(true);
|
||||
this.isPreviewSpin = true;
|
||||
return
|
||||
}
|
||||
|
||||
@ -945,14 +946,15 @@ export class SlotScene extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
handleErrSpin() {
|
||||
handleErrSpin(isErr2 = false) {
|
||||
this.spinInfo = this.lastSpinInfo;
|
||||
this.spinData = this.spinInfo.Data;
|
||||
this.isAutoSpin = false;
|
||||
this.spinData.AllScore = 0;
|
||||
this.spinData.SpinScore = 0;
|
||||
this.slotGame.stopScroll(this.spinData);
|
||||
this.slotBar.setBalance(this.slotBar.getBalance());
|
||||
this.slotBar.setBalance(isErr2 ? this.slotBar.getBalance() : this.spinInfo.Balance
|
||||
);
|
||||
this.slotBar.closeAutoSpin();
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user