防沉迷:修复登录退出时不必全部用户循环
This commit is contained in:
@@ -377,7 +377,9 @@ export async function roleLogin(roleId: string, userCode: string, sid: string, p
|
||||
* @param roleId role表id
|
||||
*/
|
||||
export async function roleLeave(roleId: string) {
|
||||
return await redisClient().hdelAsync(REDIS_KEY.ONLINE_USERS, roleId);
|
||||
let role = await getRoleOnlineInfo(roleId);
|
||||
await redisClient().hdelAsync(REDIS_KEY.ONLINE_USERS, roleId);
|
||||
return role;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user