活动:添加返回参数

This commit is contained in:
qiaoxin
2021-05-26 16:24:10 +08:00
parent 064b3258fe
commit 6289c593ae
3 changed files with 13 additions and 6 deletions

View File

@@ -181,11 +181,11 @@ export class GrowthData extends ActivityBase {
let index = data.findIndex(record => { return obj.dayIndex == record.dayIndex && obj.cellIndex == record.cellIndex })
if (index != -1) {
obj.totalCount = data[index].totalCount ? data[index].totalCount : 0;
obj.receiveRewardCount = data[index].receiveRewardCount ? data[index].receiveRewardCount : 0;
} else {
if (obj.taskType === TASK_TYPE.HERO_NUM) {
obj.totalCount = heroNum;
}
}
if (obj.taskType === TASK_TYPE.HERO_NUM) {
obj.totalCount = heroNum;
}
}
}