1
This commit is contained in:
parent
edda9fd46f
commit
9099257266
@ -763,7 +763,6 @@ void RoomMgr::SendGetBattleData(int mode,
|
|||||||
}
|
}
|
||||||
auto url_params = a8::MutableXObject::CreateObject();
|
auto url_params = a8::MutableXObject::CreateObject();
|
||||||
{
|
{
|
||||||
auto data = a8::MutableXObject::CreateObject();
|
|
||||||
auto members = a8::MutableXObject::CreateArray();
|
auto members = a8::MutableXObject::CreateArray();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (auto msg : join_msgs) {
|
for (auto msg : join_msgs) {
|
||||||
@ -776,11 +775,10 @@ void RoomMgr::SendGetBattleData(int mode,
|
|||||||
++i;
|
++i;
|
||||||
members->Push(*member.get());
|
members->Push(*member.get());
|
||||||
}
|
}
|
||||||
data->SetVal("members", *members);
|
|
||||||
data->SetVal("mode", mode);
|
|
||||||
url_params->SetVal("data", data->ToJsonStr());
|
|
||||||
url_params->SetVal("account_id", join_msgs[0]->account_id());
|
url_params->SetVal("account_id", join_msgs[0]->account_id());
|
||||||
url_params->SetVal("session_id", join_msgs[0]->session_id());
|
url_params->SetVal("session_id", join_msgs[0]->session_id());
|
||||||
|
url_params->SetVal("mode", mode);
|
||||||
|
url_params->SetVal("members", members->ToJsonStr());
|
||||||
}
|
}
|
||||||
HttpProxy::Instance()->HttpGet
|
HttpProxy::Instance()->HttpGet
|
||||||
(
|
(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user