结算添加日志
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)
|
auto on_error = [] (a8::XParams& param, const std::string& response)
|
||||||
{
|
{
|
||||||
|
a8::UdpLog::Instance()->Error("battleReport params: ",
|
||||||
|
{
|
||||||
|
param.param2
|
||||||
|
});
|
||||||
long long room_uuid = param.sender;
|
long long room_uuid = param.sender;
|
||||||
int hum_uniid = param.param1;
|
int hum_uniid = param.param1;
|
||||||
Room* room = RoomMgr::Instance()->GetRoomByUuid(room_uuid);
|
Room* room = RoomMgr::Instance()->GetRoomByUuid(room_uuid);
|
||||||
@ -1892,10 +1896,13 @@ void Human::InternalSendGameOver()
|
|||||||
} else {
|
} else {
|
||||||
url = "https://game2001api.kingsome.cn/webapp/index.php?c=Role&a=battleReport";
|
url = "https://game2001api.kingsome.cn/webapp/index.php?c=Role&a=battleReport";
|
||||||
}
|
}
|
||||||
|
std::string data;
|
||||||
|
params->ToUrlEncodeStr(data);
|
||||||
f8::HttpClientPool::Instance()->HttpGet(
|
f8::HttpClientPool::Instance()->HttpGet(
|
||||||
a8::XParams()
|
a8::XParams()
|
||||||
.SetSender(room->room_uuid)
|
.SetSender(room->room_uuid)
|
||||||
.SetParam1(entity_uniid),
|
.SetParam1(entity_uniid),
|
||||||
|
.SetParam2(data),
|
||||||
on_ok,
|
on_ok,
|
||||||
on_error,
|
on_error,
|
||||||
url.c_str(),
|
url.c_str(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user