后台:清理未使用的字段
This commit is contained in:
@@ -601,7 +601,7 @@ export async function accomplishTask(serverId: number, roleId: string, taskType:
|
||||
} else if (taskType == TASK_TYPE.EQUIP_QUALITY_COUNT || taskType == TASK_TYPE.GACHA_QUALITY_COUNT) {//每天统计
|
||||
let recordDate = moment(new Date()).startOf('d').toDate()
|
||||
let recordData: ActivityPopUpShopRecordModelType = await ActivityPopUpShopRecordModel.findRecordData(serverId, activity.activityId, roleId, task.id, task.taskType, recordDate)
|
||||
let { addCount, record } = isComplete(roleId, task.taskType, task.taskParam, count, parma, null);
|
||||
let { addCount } = isComplete(roleId, task.taskType, task.taskParam, count, parma, null);
|
||||
if (recordData && (recordData.count < task.condition) && (recordData.count + addCount >= task.condition)) {//完成当天任务
|
||||
let playerRecord = await ActivityPopUpShopModel.addTaskPushMessage(serverId, activity.activityId, roleId, task.id, task.taskType, count, beginTime, endTime);
|
||||
popShopData.setPlayerRecords(playerRecord)
|
||||
@@ -694,7 +694,7 @@ export async function accomplishTask(serverId: number, roleId: string, taskType:
|
||||
|
||||
return pushMessage;
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* 达成任务标准
|
||||
*
|
||||
@@ -982,4 +982,5 @@ export async function accomplishTask(serverId: number, roleId: string, taskType:
|
||||
}
|
||||
}
|
||||
return addFuncs;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user