聊天:启动服务器后重置频道 sid
This commit is contained in:
@@ -71,6 +71,7 @@ app.configure(function() {
|
|||||||
redisService.readDataBase();
|
redisService.readDataBase();
|
||||||
redisService.initAllRank();
|
redisService.initAllRank();
|
||||||
redisService.clearComBtlQueue();
|
redisService.clearComBtlQueue();
|
||||||
|
redisService.clearChannelServers();
|
||||||
updateTeamStatus(COM_TEAM_STATUS.DEFAULT, COM_TEAM_STATUS.LOOSE);
|
updateTeamStatus(COM_TEAM_STATUS.DEFAULT, COM_TEAM_STATUS.LOOSE);
|
||||||
updateTeamStatus(COM_TEAM_STATUS.FIGHTING, COM_TEAM_STATUS.LOOSE);
|
updateTeamStatus(COM_TEAM_STATUS.FIGHTING, COM_TEAM_STATUS.LOOSE);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -355,6 +355,11 @@ export async function addRedisChannel(roomId: string, sid: string) {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export async function clearChannelServers() {
|
||||||
|
const result = await redisClient().delAsync(REDIS_KEY.CHANNEL_SERVERS);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 玩家上线
|
* 玩家上线
|
||||||
* @param roleId role表id
|
* @param roleId role表id
|
||||||
|
|||||||
Reference in New Issue
Block a user