活动:首冲礼包一次性领取所有

This commit is contained in:
qiaoxin
2021-05-24 16:06:56 +08:00
parent 4fd14a2075
commit 5e9bd369cb
4 changed files with 18 additions and 8 deletions

View File

@@ -18,6 +18,7 @@ export class FirstGiftItem {
this.index = data.index;
this.reward = data.reward;
this.goldCount = data.goldCount;
this.isReceive = false;
}
}
@@ -46,6 +47,11 @@ export class FirstGiftData extends ActivityBase {
return null;
}
//奖励内容
public canReceiveItems(): FirstGiftItem[] {
return this.list.filter(obj => { return obj && !obj.isReceive });
}
//解析玩家任务领取记录
public setPlayerRecords(data: ActivityFirstGiftModelType) {
this.todayIndex = 0;