活动:每日挑战添加服务器id

This commit is contained in:
qiaoxin
2021-05-20 18:41:37 +08:00
parent a2dc4c6239
commit d637e5701d
8 changed files with 57 additions and 52 deletions

View File

@@ -26,6 +26,7 @@ export class DailyGiftItem {
this.name = data.name;
this.consume = data.consume;
this.reward = data.reward;
this.maxCount = data.maxCount;
this.discount = data.discount;
}
@@ -77,6 +78,8 @@ export class DailyGiftsData extends ActivityBase {
let index = data.findIndex(record => { return obj.dayIndex == record.dayIndex && obj.cellIndex == record.cellIndex })
if (index != -1) {
obj.buyCount = data[index].buyCount;
} else {
obj.buyCount = 0;
}
}
}