This commit is contained in:
aozhiwei 2023-12-01 13:54:05 +08:00
parent c28bcb9ad1
commit 75182ffd24

View File

@ -879,6 +879,22 @@ void RoomMgr::AdjustCMJoin(cs::CMJoin* msg)
team->SetVal("members", *members.get());
team_list->Push(*team.get());
}
{
std::string test_account_id = "6513_2006_3";
std::map<std::string, std::string> test_members;
test_members[test_account_id] = test_account_id;
auto team = a8::MutableXObject::CreateObject();
auto members = a8::MutableXObject::CreateArray();
team->SetVal("team_uuid", f8::App::Instance()->NewGlobalUuid());
for (auto& pair : test_members) {
auto member = a8::MutableXObject::CreateObject();
member->SetVal("account_id", pair.first);
//member->SetVal("session_id", pair.second);
members->Push(*member.get());
}
team->SetVal("members", *members.get());
team_list->Push(*team.get());
}
data->SetVal("team_list", *team_list.get());
{
std::string custom_data = a8::openssl::md5