1
This commit is contained in:
parent
d860732a73
commit
b12f90a47e
@ -810,7 +810,41 @@ void RoomMgr::AdjustCMJoin(cs::CMJoin* msg)
|
||||
msg->set_pve_instance_id(0);
|
||||
#ifdef DEBUG
|
||||
{
|
||||
std::string custom_data = "";
|
||||
auto data = a8::MutableXObject::CreateObject();
|
||||
data->SetVal("zone_id", 1);
|
||||
data->SetVal("node_id", 1);
|
||||
data->SetVal("room_uuid", App::Instance()->NewUuid());
|
||||
data->SetVal("start_time", Global::g_nowtime);
|
||||
auto team_list = a8::MutableXObject::CreateArray();
|
||||
{
|
||||
std::map<std::string, std::string> test_members;
|
||||
test_members[msg->account_id()] = msg->session_id();
|
||||
auto team = a8::MutableXObject::CreateObject();
|
||||
team->SetVal("team_uuid", App::Instance()->NewUuid());
|
||||
for (auto& pair : test_members) {
|
||||
auto member = a8::MutableXObject::CreateObject();
|
||||
member->SetVal("account_id", pair.first);
|
||||
member->SetVal("session_id", pair.second);
|
||||
}
|
||||
team_list->Push(*team);
|
||||
}
|
||||
{
|
||||
std::map<std::string, std::string> test_members;
|
||||
//test_members[msg->account_id()] = msg->session_id();
|
||||
auto team = a8::MutableXObject::CreateObject();
|
||||
team->SetVal("team_uuid", App::Instance()->NewUuid());
|
||||
for (auto& pair : test_members) {
|
||||
auto member = a8::MutableXObject::CreateObject();
|
||||
member->SetVal("account_id", pair.first);
|
||||
member->SetVal("session_id", pair.second);
|
||||
}
|
||||
team_list->Push(*team);
|
||||
}
|
||||
data->SetVal("team_list", *team_list);
|
||||
{
|
||||
std::string custom_data;
|
||||
msg->set_custom_room_payload(custom_data);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef DEBUG
|
||||
|
Loading…
x
Reference in New Issue
Block a user