活动:每日免费午饭、晚饭活动
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user