任务:今日挑战区分累积型和去做型
This commit is contained in:
@@ -59,9 +59,9 @@ export class SevenDaysDailyChallengesData {
|
||||
return (index != -1) ? this.list[index] : null;
|
||||
}
|
||||
|
||||
public findTaskByType(type: TASK_TYPE, dayIndex: number) {
|
||||
public findTaskByType(type: TASK_TYPE) {
|
||||
return this.list.filter(obj => {
|
||||
return obj && obj.taskType == type && obj.dayIndex == dayIndex;
|
||||
return obj && obj.taskType == type;
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user