免费赠送报错时弹窗修改,免费次数降低时机修改
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 45s

This commit is contained in:
TJH 2025-12-03 09:48:20 +08:00
parent 24bf09563f
commit 69f0824a61
2 changed files with 8 additions and 9 deletions

View File

@ -228,13 +228,7 @@ export class SlotScene extends Component {
// 如果有frb就不会扣除金额
let frb = GameDataManager.instance.frb;
if (frb && frb.Ongoing != null) {
if (!isFreeSpin) {
let count = frb.Ongoing.Frn - 1;
if (count <= 0) {
count = 0;
}
this.SysGift.handleSysInfoFreeCount(count);
}
} else {
if (!isFreeSpin) {
if (!isFeatureBuy) {
@ -268,6 +262,11 @@ export class SlotScene extends Component {
}
GameDataManager.instance.frb = this.spinInfo.Frb;
let count = frb.Ongoing.Frn - 1;
if (count <= 0) {
count = 0;
}
this.SysGift.handleSysInfoFreeCount(count);
// if (frb?.Ongoing?.Frn - 1 != GameDataManager.instance.frb?.Ongoing?.Frn) {
// this.SysGift.handleSysInfoFreeCount(this.spinInfo.Frb.Ongoing.Frn);
// }
@ -845,7 +844,7 @@ export class SlotScene extends Component {
msg2 = I18nManager.instance.t('AID_ERROR_CODE_4');
tip = `${msg1}\n${msg2}`;
if (!this.TipPanel.getHasTip()) {
this.TipPanel.showTip(title, tip, () => { window.close() }, null, I18nManager.instance.t('AID_ERROR_QUIT_BUTTON'), I18nManager.instance.t('AID_ERROR_RETRY_BUTTON'), true);
this.TipPanel.showTip(title, tip, () => { window.close() }, null, I18nManager.instance.t('AID_ERROR_QUIT_BUTTON'), null, false);
}
break;
case 5:

View File

@ -9,7 +9,7 @@ const qs = new URLSearchParams(location.search)
// let apiaddr = "https://rpgames-api.rpfafafahkdev.com";
let apiaddr = "";
let token = "eyJQIjoxMDA5NDksIkUiOjE3NjI2MTEwMjYsIlMiOjEwMDUsIkQiOiJycF8xMDAxMiJ9.hMuz6Kp_788703hWLLIknQsFhdCu7dJLWbEizfJi0Zg";
let token = "eyJQIjoxMDA5NDksIkUiOjE3NjQ3Njk0MjAsIlMiOjk5NiwiRCI6InJwXzEwMDEyIn0.DhDHrfx7WNRBG6D0f5eevBqXg4GubW7_XlxIFUG5L6s";
let language = "en"
let currency = "THB"
let isfrom = null