✨ feat(活动): 添加两种密卷 ed96aa4ac
This commit is contained in:
@@ -9,6 +9,7 @@ interface AuthorGachaDataInDb {
|
||||
box: {
|
||||
count: number; // 次数
|
||||
rewards: string; // type&id&count, type: 1-武将 2-道具 3-礼包
|
||||
isSpecial: boolean; // 重要节点奖励标记
|
||||
hasReceived?: boolean; // 是否获得
|
||||
}[];
|
||||
}
|
||||
@@ -45,10 +46,10 @@ export class AuthorGachaData extends ActivityBase {
|
||||
|
||||
public getShowResult() {
|
||||
let box: AuthorGachaDataInDb['box'] = [];
|
||||
for (let { count, rewards } of this.box) {
|
||||
for (let { count, rewards, isSpecial = false } of this.box) {
|
||||
let hasReceived = false;
|
||||
if (this.record.indexOf(count) != -1) hasReceived = true;
|
||||
box.push({ count, rewards, hasReceived })
|
||||
box.push({ count, rewards, hasReceived, isSpecial })
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user