This commit is contained in:
aozhiwei 2019-06-25 14:54:44 +08:00
parent 339e8855a3
commit b81e4006e8

View File

@ -1972,6 +1972,14 @@ void Human::InternalSendGameOver()
cs::SMGameOver msg;
hum->FillSMGameOver(msg);
hum->SendNotifyMsg(msg);
if (hum->socket_handle == 0) {
a8::UdpLog::Instance()->Error("battleReport socket_handle error room_uuid:%s account_id:%s nickname:%s ",
{
room_uuid,
hum->account_id,
hum->name
});
}
if (!hum->sent_game_end_ && hum->entity_subtype == EST_Player) {
GameLog::Instance()->GameEnd((Player*)hum);
hum->sent_game_end_ = true;
@ -1981,7 +1989,7 @@ void Human::InternalSendGameOver()
};
auto on_error = [] (a8::XParams& param, const std::string& response)
{
a8::UdpLog::Instance()->Error("battleReport params: %s response: %s",
a8::UdpLog::Instance()->Error("battleReport http error params: %s response: %s",
{
param.param2,
response