任务:登录任务

This commit is contained in:
luying
2022-04-26 20:06:05 +08:00
parent b37586a706
commit 84304927c7
4 changed files with 22 additions and 13 deletions
+3 -3
View File
@@ -40,11 +40,11 @@ export async function checkTask(serverId: number, roleId: string, sid: string, t
await task.saveAndPush(sid);
}
export async function checkTaskInEntry(serverId: number, roleId: string, sid: string, role: RoleType) {
export async function checkTaskInEntry(serverId: number, roleId: string, sid: string, role: RoleType, loginTime: number) {
let task = new CheckTask(serverId, roleId);
task.setRole(role);
task.setParam(TASK_TYPE.LOGIN_SUM, {});
task.setParam(TASK_TYPE.LOGIN_SERIES, {});
task.setParam(TASK_TYPE.LOGIN_SUM, { loginTime });
task.setParam(TASK_TYPE.LOGIN_SERIES, { loginTime });
await task.saveAndPush(sid);
checkPopUpConditionInEntry(serverId, roleId, sid);
}