历史记录详情修改

This commit is contained in:
TJH 2026-04-30 10:56:45 +08:00
parent fa50168802
commit d715351fc0
4 changed files with 796 additions and 626 deletions

View File

@ -173,6 +173,7 @@ export class UpLayer extends Component {
playScatterWaitSpine(bol: boolean) { playScatterWaitSpine(bol: boolean) {
console.log('播放scatter等待动画2', this.scatterLayer);
this.scatterLayer.children.forEach(child => child.getComponent(Icon).playScatterWaitSpine(bol)); this.scatterLayer.children.forEach(child => child.getComponent(Icon).playScatterWaitSpine(bol));
} }
} }

File diff suppressed because it is too large Load Diff

View File

@ -51,6 +51,7 @@ export class HistoryDetail extends Component {
lang = "th" lang = "th"
data: any = null data: any = null
currTotalMulti = 0
protected onLoad(): void { protected onLoad(): void {
@ -237,9 +238,9 @@ export class HistoryDetail extends Component {
let currentRoundBefore = 0; let currentRoundBefore = 0;
data.panDetails.forEach((pan, index) => { data.panDetails.forEach((pan, index) => {
let isRoundEnd = pan.IsEnd let isRoundEnd = pan.RoundInfo && pan.RoundInfo.Current === pan.RoundInfo.Total
let isRoundMore = index > 0; let isRoundMore = pan.RoundInfo && pan.RoundInfo.Total > 1;
let roundWin = pan.Score || 0; let roundWin = pan.RoundInfo && pan.RoundInfo.AllScoreMul || 0;
let obj = { let obj = {
bet: index === 0 ? data.bet : 0, bet: index === 0 ? data.bet : 0,
@ -257,7 +258,7 @@ export class HistoryDetail extends Component {
before = pan.Balance - roundWin; before = pan.Balance - roundWin;
after = pan.Balance; after = pan.Balance;
isFirstRound = false; isFirstRound = false;
} else if (pan.Index == 0) { } else if (pan.RoundInfo && pan.RoundInfo.Current == 1) {
profit = -data.bet; profit = -data.bet;
before = pan.Balance + data.bet - roundWin; before = pan.Balance + data.bet - roundWin;
after = pan.Balance - roundWin; after = pan.Balance - roundWin;
@ -267,7 +268,7 @@ export class HistoryDetail extends Component {
after = pan.Balance - roundWin; after = pan.Balance - roundWin;
} }
} else { } else {
profit = roundWin - data.bet; profit = pan.AllScore - data.bet;
before = pan.Balance - profit; before = pan.Balance - profit;
after = pan.Balance; after = pan.Balance;
isFirstRound = false; isFirstRound = false;
@ -395,11 +396,15 @@ export class HistoryDetail extends Component {
let roller_gray = content.getChildByName('Roller').getChildByName('gray'); let roller_gray = content.getChildByName('Roller').getChildByName('gray');
let roller_wins = content.getChildByName('Roller').getChildByName('icon_wins'); let roller_wins = content.getChildByName('Roller').getChildByName('icon_wins');
let roller_scatter = content.getChildByName('Roller').getChildByName('icon_scatter'); let roller_scatter = content.getChildByName('Roller').getChildByName('icon_scatter');
let totalMulti = content.getChildByName('Roller').getChildByName('totalMulti');
roller_normal.removeAllChildren(); roller_normal.removeAllChildren();
roller_gray.active = false; roller_gray.active = false;
roller_wins.removeAllChildren(); roller_wins.removeAllChildren();
roller_scatter.removeAllChildren(); roller_scatter.removeAllChildren();
// let showMulti = pan.WinMultiPlier - pan.WinMultiPlierReal
totalMulti.getComponent(Label).string = this.currTotalMulti <= 0 ? " " : ('x' + this.currTotalMulti)
let upIconIndexs = []; let upIconIndexs = [];
if (winInfo[0] != null) { if (winInfo[0] != null) {
// 对{}进行遍历 // 对{}进行遍历
@ -477,9 +482,6 @@ export class HistoryDetail extends Component {
} }
} }
console.log(roller_gray.active, 'roller_gray.active')
// No Winning Combination // No Winning Combination
let node_no_winning = content.getChildByName("node_no_winning") let node_no_winning = content.getChildByName("node_no_winning")
node_no_winning.active = winInfo[0] == null; node_no_winning.active = winInfo[0] == null;
@ -496,7 +498,7 @@ export class HistoryDetail extends Component {
let node_win_multiplier_1 = content.getChildByName("node_win_multiplier_1") let node_win_multiplier_1 = content.getChildByName("node_win_multiplier_1")
node_win_multiplier_1.active = false; node_win_multiplier_1.active = false;
if (winInfo[0] != null) { if (pan.RoundInfo != null) {
if (pan.RoundInfo && pan.RoundInfo.Mul > 1) { if (pan.RoundInfo && pan.RoundInfo.Mul > 1) {
// let mulDesc = winInfo.MulDesc; // let mulDesc = winInfo.MulDesc;
let txt_win_multiplier = node_win_multiplier.getChildByName("txt_win_multiplier") let txt_win_multiplier = node_win_multiplier.getChildByName("txt_win_multiplier")
@ -507,12 +509,14 @@ export class HistoryDetail extends Component {
txt_win_multiplier_1.getComponent(Label).string = getTranslate(this.dict, "Win Multiplier"); txt_win_multiplier_1.getComponent(Label).string = getTranslate(this.dict, "Win Multiplier");
let mulited = node_win_multiplier_1.getChildByName("mulited"); let mulited = node_win_multiplier_1.getChildByName("mulited");
mulited.getComponent(Label).string = `${currencySymbol} ${fixNum(pan.RoundInfo.Score)}` + ''; mulited.getComponent(Label).string = `${currencySymbol} ${fixNum(pan.RoundInfo.AllScoreMul)}` + '';
let unmulited = node_win_multiplier_1.getChildByName("unmulited"); let unmulited = node_win_multiplier_1.getChildByName("unmulited");
unmulited.getComponent(Label).string = `${currencySymbol} ${fixNum(pan.RoundInfo.AllScoreMul)} x ${pan.RoundInfo.Mul}`; unmulited.getComponent(Label).string = `${currencySymbol} ${fixNum(pan.RoundInfo.AllScore)} x ${pan.RoundInfo.Mul}`;
node_win_multiplier_1.active = true; node_win_multiplier_1.active = true;
this.currTotalMulti = pan.RoundInfo.Mul
} }
} }

View File

@ -109,7 +109,7 @@ export class Loading extends Component {
private async initializeSystem() { private async initializeSystem() {
this.rb7Logo.active = getIsRB7(); this.rb7Logo.active = getIsRB7();
if (DEBUG) { if (DEBUG) {
await getTestToken("yysky", "faketrans"); await getTestToken("xingxi", "faketrans");
} }
} }