This commit is contained in:
yangduo 2025-05-04 11:53:25 +08:00
parent 62816aeb7b
commit 06cd095e37

View File

@ -558,6 +558,13 @@ std::string RoomMgr::GenTeamHashData(const std::string& team_uuid, std::map<std:
void RoomMgr::OnJoinRoomOk(const cs::CMJoin& msg, Player* hum)
{
a8::UdpLog::Instance()->Info
("join room ok: %s,%s,%d",
{
hum->account_id,
msg.team_uuid(),
hum->room->GetRoomUuid()
});
if (msg.team_members().size() <= 1) {
return;
}
@ -591,13 +598,6 @@ void RoomMgr::OnJoinRoomOk(const cs::CMJoin& msg, Player* hum)
auto itr = team_hash->find(hum->account_id);
if (itr != team_hash->end()) {
itr->second = hum->room->GetRoomUuid();
a8::UdpLog::Instance()->Info
("join room ok: %s, %s, %ld",
{
hum->account_id,
msg.team_uuid(),
hum->room->GetRoomUuid()
});
} else {
a8::UdpLog::Instance()->Warning
("team_data:%s account_id:%s not exists",