点击余额不足提示确认按钮时刷新玩家余额的显示
This commit is contained in:
parent
1edb5cd3e5
commit
d55273f9c0
@ -242,7 +242,7 @@ export class SlotScene extends Component {
|
|||||||
|
|
||||||
if (this.slotBar.getBalance() < (isFeatureBuy ? this.slotBar.getBet() * this.gameInfo.BuyMul : this.slotBar.getBet()) && !isFreeSpin && !GameDataManager.instance.frb.Ongoing) {
|
if (this.slotBar.getBalance() < (isFeatureBuy ? this.slotBar.getBet() * this.gameInfo.BuyMul : this.slotBar.getBet()) && !isFreeSpin && !GameDataManager.instance.frb.Ongoing) {
|
||||||
//余额不足不经过服务器,在客户端拦截
|
//余额不足不经过服务器,在客户端拦截
|
||||||
this.showErrorTip(2, "");
|
this.showErrorTip(2, () => { this.slotBar.onClickBalance() });
|
||||||
this.handleErrSpin();
|
this.handleErrSpin();
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -886,7 +886,7 @@ export class SlotScene extends Component {
|
|||||||
msg2 = I18nManager.instance.t('AID_ERROR_CODE_2');
|
msg2 = I18nManager.instance.t('AID_ERROR_CODE_2');
|
||||||
tip = `${msg1}\n${msg2}`;
|
tip = `${msg1}\n${msg2}`;
|
||||||
if (!this.TipPanel.getHasTip()) {
|
if (!this.TipPanel.getHasTip()) {
|
||||||
this.TipPanel.showTip(title, tip, null, null, I18nManager.instance.t('AID_ERROR_OK_BUTTON'), null, false);
|
this.TipPanel.showTip(title, tip, callback, null, I18nManager.instance.t('AID_ERROR_OK_BUTTON'), null, false);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
|
|||||||
@ -187,7 +187,7 @@
|
|||||||
"_priority": 0,
|
"_priority": 0,
|
||||||
"_fov": 45,
|
"_fov": 45,
|
||||||
"_fovAxis": 0,
|
"_fovAxis": 0,
|
||||||
"_orthoHeight": 960,
|
"_orthoHeight": 959.9999999999999,
|
||||||
"_near": 0,
|
"_near": 0,
|
||||||
"_far": 2000,
|
"_far": 2000,
|
||||||
"_color": {
|
"_color": {
|
||||||
|
|||||||
@ -9,7 +9,7 @@ const qs = new URLSearchParams(location.search)
|
|||||||
|
|
||||||
// let apiaddr = "https://rpgames-api.rpfafafahkdev.com";
|
// let apiaddr = "https://rpgames-api.rpfafafahkdev.com";
|
||||||
let apiaddr = "";
|
let apiaddr = "";
|
||||||
let token = "eyJQIjoxMDA5NDksIkUiOjE3ODA5NDY2MzIsIlMiOjk5OCwiRCI6InJwXzEwMDEyIn0.YhnazRKiM4CXHd0oxMS6WDMJYpvpVsijKx-AXZtMCLo";
|
let token = "eyJQIjoxMDAwMDEsIkUiOjE3ODExMTY1NjYsIlMiOjEwMDIsIkQiOiJycF8xMDAxMiJ9.I2959bskgMea99B9N_7_Lbb083gZcuov9nTDZX0hjRQ";
|
||||||
let language = "en"
|
let language = "en"
|
||||||
let currency = "THB"
|
let currency = "THB"
|
||||||
let isfrom = null
|
let isfrom = null
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user