活动:每日免费午饭、晚饭活动

This commit is contained in:
qiaoxin
2021-06-10 17:09:31 +08:00
parent c0efcaa07d
commit 1b16ffc6ab
8 changed files with 293 additions and 5 deletions
@@ -172,9 +172,9 @@ export class TreasureHuntTaskData {
public setPlayerTaskRecords(record: ActivityTreasureHuntTaskModelType[]) {
for (let item of this.list) {
let index = record.findIndex(obj => { return obj.cellIndex === item.cellIndex && obj.type === item.taskType });
let index = record.findIndex(obj => { return obj.cellIndex === item.cellIndex });
if (index != -1) {
item.totalCount = record[index].totalCount;
item.totalCount = record[index].totalCount ? record[index].totalCount : 0;
item.isReceive = record[index].receiveRewardCount ? true : false;
}
}