结算添加日志
This commit is contained in:
parent
f20fd2a1cd
commit
87ac55c041
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user