This commit is contained in:
aozhiwei 2023-08-04 14:56:03 +08:00
parent f5626febf7
commit e9a28bed5b
3 changed files with 13 additions and 1 deletions

View File

@ -1417,6 +1417,10 @@ void Human::DeadDrop()
void Human::SendBattleReport()
{
if (room->GetBattleStartFrameNo() <= 0) {
return;
}
std::shared_ptr<a8::MutableXObject> params = a8::MutableXObject::CreateObject();
GenBattleReportData(params.get());
std::string url;
@ -3786,6 +3790,9 @@ void Human::SendPersonalBattleReport()
if (room->IsPveRoom()) {
return;
}
if (room->GetBattleStartFrameNo() <= 0) {
return;
}
std::shared_ptr<a8::MutableXObject> params = a8::MutableXObject::CreateObject();
{
params->SetVal("account_id", account_id);

View File

@ -1620,6 +1620,9 @@ void Human::SendBattleSettlement()
if (!IsPlayer()) {
return;
}
if (room->GetBattleStartFrameNo() <= 0) {
return;
}
Player* p = (Player*)this;
std::shared_ptr<a8::MutableXObject> params = a8::MutableXObject::CreateObject();
{

View File

@ -216,7 +216,9 @@ void Team::SendTeamBattleReport(Human* sender)
if (AllIsRunAway()) {
return;
}
if (room->GetBattleStartFrameNo() <= 0) {
return;
}
std::shared_ptr<a8::MutableXObject> post_data = a8::MutableXObject::CreateObject();
GenBattleReportData(player, post_data.get());
std::string url;