This commit is contained in:
aozhiwei 2023-12-05 13:35:54 +08:00
parent a2a3d4f87b
commit 0989bcc023

View File

@ -231,9 +231,6 @@ void Team::SendTeamBattleReport(Human* sender)
if (room->GetBattleStartFrameNo() <= 0) { if (room->GetBattleStartFrameNo() <= 0) {
return; return;
} }
if (room->GetCustomBattle()) {
return;
}
std::shared_ptr<a8::MutableXObject> post_data = a8::MutableXObject::CreateObject(); std::shared_ptr<a8::MutableXObject> post_data = a8::MutableXObject::CreateObject();
GenBattleReportData(player, post_data.get()); GenBattleReportData(player, post_data.get());
std::string url; std::string url;
@ -250,6 +247,18 @@ void Team::SendTeamBattleReport(Human* sender)
std::string room_uuid = room->GetRoomUuid(); std::string room_uuid = room->GetRoomUuid();
int team_id = GetTeamId(); int team_id = GetTeamId();
if (room->GetCustomBattle()) {
already_report_battle = true;
sending_battlereport = false;
TraverseMembers
(
[] (Human* hum)
{
hum->SendGameOver();
return true;
});
return;
}
HttpProxy::Instance()->HttpGet HttpProxy::Instance()->HttpGet
( (
[room_uuid, team_id] [room_uuid, team_id]