From 6efaccf258ae610aaab5f10fc7b2c0f67a5bbd10 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 29 Apr 2019 17:23:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0battle=20report?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/human.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 6381c10..1ae171d 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -1197,7 +1197,7 @@ void Human::SendUpdateMsg() void Human::UpdateGameOver() { - #if 0 + #if 1 a8::MutableXObject* params = a8::MutableXObject::NewObject(); GenBattleReportData(params); auto on_ok = [] (a8::XParams& param, a8::XObject& data) @@ -1209,6 +1209,9 @@ void Human::UpdateGameOver() Entity* entity = room->GetEntityByUniId(hum_uniid); if (entity && entity->entity_type == ET_Player) { Human* hum = (Human*)entity; + cs::SMGameOver msg; + hum->FillSMGameOver(msg); + hum->SendNotifyMsg(msg); } } }; @@ -1231,7 +1234,7 @@ void Human::UpdateGameOver() std::string url; if (!f8::IsOnlineEnv()) { if (App::Instance()->flags.find(3) != App::Instance()->flags.end()) { - url = "http://http://192.168.100.41/webapp/index.php?c=Role&a=battleReport"; + url = "http://192.168.100.41/webapp/index.php?c=Role&a=battleReport"; } else { url = "https://game2001api-test.kingsome.cn/webapp/index.php?c=Role&a=battleReport"; }