diff --git a/server/gameserver/boxdrop.cc b/server/gameserver/boxdrop.cc index 8340b736..2103a353 100644 --- a/server/gameserver/boxdrop.cc +++ b/server/gameserver/boxdrop.cc @@ -93,22 +93,20 @@ void BoxDrop::RequestAllocBoxNum() { if (ok) { f8::UdpLog::Instance()->Info - ("GetBattleData ok %s", + ("RequestAllocBoxNum ok %s", { rsp_obj->ToJsonStr() - }); + }); if (rsp_obj->GetType() != a8::XOT_OBJECT || !rsp_obj->HasKey("errcode")) { - //cb(1, "", nullptr); return; } } else { f8::UdpLog::Instance()->Warning - ("GetCustomBattleData error %s", + ("RequestAllocBoxNum error %s", { "" - }); - //cb(1, "custom battle data error", nullptr); + }); } }, url, diff --git a/server/gameserver/httpproxy.cc b/server/gameserver/httpproxy.cc index c8e6905f..dcfdddf5 100644 --- a/server/gameserver/httpproxy.cc +++ b/server/gameserver/httpproxy.cc @@ -221,7 +221,7 @@ void HttpProxy::AddSignParams(const std::string& url, A8_ABORT(); } std::string sign_data; - sign_data.reserve(1024 * 10); + sign_data.reserve(1024 * 64); int nowtime = f8::App::Instance()->GetNowTime(); { std::vector keys; diff --git a/server/gameserver/room.h b/server/gameserver/room.h index 97496a81..944f9fae 100644 --- a/server/gameserver/room.h +++ b/server/gameserver/room.h @@ -76,7 +76,7 @@ enum RoomSwitch_e kRoomSwitchDisableShot, }; -class Room +class Room : public std::enable_shared_from_this { public: FrameEvent frame_event;