From 87ac55c041aa1d4181f0309161fb9dad0e974ba2 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 4 Jun 2019 09:49:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E6=B7=BB=E5=8A=A0=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/gameserver/human.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 32af722..0ffbcec 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -1867,6 +1867,10 @@ void Human::InternalSendGameOver() }; auto on_error = [] (a8::XParams& param, const std::string& response) { + a8::UdpLog::Instance()->Error("battleReport params: ", + { + param.param2 + }); long long room_uuid = param.sender; int hum_uniid = param.param1; Room* room = RoomMgr::Instance()->GetRoomByUuid(room_uuid); @@ -1892,10 +1896,13 @@ void Human::InternalSendGameOver() } else { url = "https://game2001api.kingsome.cn/webapp/index.php?c=Role&a=battleReport"; } + std::string data; + params->ToUrlEncodeStr(data); f8::HttpClientPool::Instance()->HttpGet( a8::XParams() .SetSender(room->room_uuid) .SetParam1(entity_uniid), + .SetParam2(data), on_ok, on_error, url.c_str(),