将两种任务初步合起来
This commit is contained in:
@@ -630,10 +630,11 @@ function checkRecResult(rec: UserTaskRecType, id: number) {
|
||||
*
|
||||
*/
|
||||
export async function accomplishTask(serverId: number, roleId: string, taskType: TASK_TYPE, count: number, parma?: any, activities?: ActivityInRemote[]) {
|
||||
|
||||
// console.log('accomplishTask', roleId, taskType, count, JSON.stringify(parma))
|
||||
let dicTaskType = gameData.taskDescByType.get(taskType);
|
||||
let pushMessage = [];
|
||||
let serverInfo = await ServerlistModel.findByServerId(serverId);
|
||||
/* let serverInfo = await ServerlistModel.findByServerId(serverId);
|
||||
if (!serverInfo) return [];
|
||||
let { activityGroupId } = serverInfo;
|
||||
let findActivitiesByTypes = async (types: number[]) => {
|
||||
@@ -859,6 +860,7 @@ export async function accomplishTask(serverId: number, roleId: string, taskType:
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// console.log('***** thirtyDay after', Date.now());
|
||||
|
||||
@@ -990,6 +992,7 @@ export async function accomplishTask(serverId: number, roleId: string, taskType:
|
||||
}
|
||||
}
|
||||
// console.log('***** growthFundElite after', Date.now());
|
||||
*/
|
||||
return pushMessage;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user