龙虎榜
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m14s

This commit is contained in:
TJH 2025-12-31 15:20:31 +08:00
parent 79990a2ae8
commit fb72706ade
2 changed files with 13 additions and 4 deletions

View File

@ -119,7 +119,7 @@ export class RewardList extends Component {
this.setRewardRadioBtn(type);
if (!this.isTypeAvailable(type)) {
if (!this.isTypeAvailable(type) || SlotRankingDataManager.instance.getRankListStatusByType(type) !== 0) {
console.log(`${type} 奖励榜单活动未开启`);
this.rewardLoadingNode.active = false;
this.showActivityNotOpenTip();

View File

@ -66,7 +66,7 @@ export class SlotRankingDataManager {
]
}
*/
getRankMaxCloseTimeIsBiggerThanCurTime(): boolean {
if (!this._rankList || !this._rankList.List || this._rankList.List.length === 0) {
// 代表当前没有活动开启,则说明关闭入口按钮
@ -78,11 +78,20 @@ export class SlotRankingDataManager {
if (item.CloseTime > maxCloseTime) {
maxCloseTime = item.CloseTime;
}
}
}
return Date.now() <= (maxCloseTime * 1000);
}
getRankListStatusByType(type: string): number {
if (!this._rankList || !this._rankList.List || this._rankList.List.length === 0) {
return 2;
}
let item = this._rankList.List.find((item: any) => item.Type === type);
return item ? item.Status : 2;
}
getRankListStatus(): number {
if (!this._rankList || !this._rankList.List || this._rankList.List.length === 0) {
return 2;