This commit is contained in:
aozhiwei 2024-07-31 09:43:42 +08:00
parent ba2809123f
commit db0d36269e
3 changed files with 6 additions and 8 deletions

View File

@ -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,

View File

@ -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<std::string> keys;

View File

@ -76,7 +76,7 @@ enum RoomSwitch_e
kRoomSwitchDisableShot,
};
class Room
class Room : public std::enable_shared_from_this<Room>
{
public:
FrameEvent frame_event;