adjust
This commit is contained in:
parent
62816aeb7b
commit
06cd095e37
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user