任务:寻宝相关

This commit is contained in:
luying
2022-04-27 15:47:50 +08:00
parent 735fe0fb91
commit 89d9f1cb4e
2 changed files with 4 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ export class CheckTask {
this.tasks.push(task);
}
public async saveAndPush(sid: string) {
public async saveAndPush(sid?: string) {
for(let task of this.tasks) {
await task.check();
}
@@ -100,7 +100,7 @@ export class CheckTask {
}
// 推送
public async pushMessage(sid: string) {
public async pushMessage(sid?: string) {
let roleId = this.roleId;
if (!sid) {
let onlineUser = await getRoleOnlineInfo(roleId);