This commit is contained in:
aozhiwei 2023-06-08 19:26:40 +08:00
parent ceaf83f9e3
commit 6bc5377baa

View File

@ -3662,8 +3662,20 @@ void Human::ShiledBreak()
void Human::SendPersonalBattleReport()
{
if (room->IsPveRoom()) {
return;
}
std::shared_ptr<a8::MutableXObject> params = a8::MutableXObject::CreateObject();
GenBattleReportData(params.get());
{
params->SetVal("account_id", account_id);
params->SetVal("session_id", session_id);
params->SetVal("version", 2023030201);
params->SetVal("battle_uuid", a8::XValue(battle_uuid));
params->SetVal("room_uuid", a8::XValue(room->GetRoomUuid()));
params->SetVal("room_mode", room->GetReportRoomMode());
params->SetVal("team_id", GetTeam()->GetTeamId());
}
std::string url;
JsonDataMgr::Instance()->GetApiUrl(url);
if (url.find('?') != std::string::npos) {