1
This commit is contained in:
parent
a84dd83bf9
commit
84e22471d2
@ -49,6 +49,7 @@
|
|||||||
#include "roomob.h"
|
#include "roomob.h"
|
||||||
#include "ingamevoice.h"
|
#include "ingamevoice.h"
|
||||||
#include "jsondatamgr.h"
|
#include "jsondatamgr.h"
|
||||||
|
#include "httpproxy.h"
|
||||||
|
|
||||||
#include "mt/Param.h"
|
#include "mt/Param.h"
|
||||||
#include "mt/Hero.h"
|
#include "mt/Hero.h"
|
||||||
@ -2201,7 +2202,8 @@ void Room::AddObjectLater(RoomEntity* entity)
|
|||||||
|
|
||||||
void Room::OnGameOver()
|
void Room::OnGameOver()
|
||||||
{
|
{
|
||||||
if (IsAlreadyRoomReportBattle()) {
|
if (IsAlreadyRoomReportBattle() ||
|
||||||
|
GetCustomBattle()) {
|
||||||
TraverseHumanList
|
TraverseHumanList
|
||||||
(
|
(
|
||||||
[] (Human* ele_hum) -> bool
|
[] (Human* ele_hum) -> bool
|
||||||
@ -2235,6 +2237,18 @@ void Room::OnGameOver()
|
|||||||
params->SetVal("session_id", player->session_id);
|
params->SetVal("session_id", player->session_id);
|
||||||
params->SetVal("__POST", post_data->ToJsonStr());
|
params->SetVal("__POST", post_data->ToJsonStr());
|
||||||
GenBattleRoomReportData(post_data.get());
|
GenBattleRoomReportData(post_data.get());
|
||||||
|
HttpProxy::Instance()->HttpGet
|
||||||
|
(
|
||||||
|
[room_uuid = GetRoomUuid()]
|
||||||
|
(bool ok, a8::XObject* rsp_obj, f8::HttpContext* ctx)
|
||||||
|
{
|
||||||
|
auto room = RoomMgr::Instance()->GetRoomByUuid(room_uuid);
|
||||||
|
if (room) {
|
||||||
|
}
|
||||||
|
},
|
||||||
|
url.c_str(),
|
||||||
|
*params.get()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
int param1 = 1;
|
int param1 = 1;
|
||||||
xtimer.SetIntervalEx
|
xtimer.SetIntervalEx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user