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) { if (ok) {
f8::UdpLog::Instance()->Info f8::UdpLog::Instance()->Info
("GetBattleData ok %s", ("RequestAllocBoxNum ok %s",
{ {
rsp_obj->ToJsonStr() rsp_obj->ToJsonStr()
}); });
if (rsp_obj->GetType() != a8::XOT_OBJECT || if (rsp_obj->GetType() != a8::XOT_OBJECT ||
!rsp_obj->HasKey("errcode")) { !rsp_obj->HasKey("errcode")) {
//cb(1, "", nullptr);
return; return;
} }
} else { } else {
f8::UdpLog::Instance()->Warning f8::UdpLog::Instance()->Warning
("GetCustomBattleData error %s", ("RequestAllocBoxNum error %s",
{ {
"" ""
}); });
//cb(1, "custom battle data error", nullptr);
} }
}, },
url, url,

View File

@ -221,7 +221,7 @@ void HttpProxy::AddSignParams(const std::string& url,
A8_ABORT(); A8_ABORT();
} }
std::string sign_data; std::string sign_data;
sign_data.reserve(1024 * 10); sign_data.reserve(1024 * 64);
int nowtime = f8::App::Instance()->GetNowTime(); int nowtime = f8::App::Instance()->GetNowTime();
{ {
std::vector<std::string> keys; std::vector<std::string> keys;

View File

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