连接:添加queryEnter处理
This commit is contained in:
@@ -471,6 +471,17 @@ export async function removeConnectors(servers: string[]) {
|
||||
}
|
||||
}
|
||||
|
||||
export async function checkConnectors() {
|
||||
let servers = pinus.app.getServersByType('connector');
|
||||
let redisServers = await redisClient().hgetallAsync(REDIS_KEY.SYS_SERVER);
|
||||
for(let id in redisServers) {
|
||||
let server = servers.find(cur => cur.id == id);
|
||||
if(!server || server['isGM'] == 'true') {
|
||||
await redisClient().hdelAsync(REDIS_KEY.SYS_SERVER, id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*************** 将connector服插入redis *******/
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user