聊天:加入玩家发起的群聊和测试用例
This commit is contained in:
@@ -346,12 +346,12 @@ export function redisSidKey(roleId: string) {
|
||||
}
|
||||
|
||||
export async function redisChannelServer(roomId: string) {
|
||||
const sid = await redisClient().hgetAsync(REDIS_KEY.ONLINE_USERS, roomId);
|
||||
const sid = await redisClient().hgetAsync(REDIS_KEY.CHANNEL_SERVERS, roomId);
|
||||
return sid;
|
||||
}
|
||||
|
||||
export async function addRedisChannel(roomId: string, sid: string) {
|
||||
const result = await redisClient().hsetAsync(REDIS_KEY.ONLINE_USERS, roomId, sid);
|
||||
const result = await redisClient().hsetAsync(REDIS_KEY.CHANNEL_SERVERS, roomId, sid);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user