1
This commit is contained in:
parent
b49c99f768
commit
7d94a6af73
@ -921,6 +921,14 @@ void RoomMgr::SendGetCustomBattleData(std::shared_ptr<cs::CMJoin> join_msg,
|
||||
{
|
||||
rsp_obj->ToJsonStr()
|
||||
});
|
||||
if (rsp_obj->GetType() != a8::XOT_OBJECT ||
|
||||
!rsp_obj->HasKey("errcode")) {
|
||||
cb(1, "", nullptr);
|
||||
return;
|
||||
}
|
||||
int errcode = rsp_obj->Get("errcode", "").GetInt();
|
||||
std::string errmsg = rsp_obj->Get("errmsg", "").GetString();
|
||||
|
||||
auto custom_battle = std::make_shared<CustomBattle>();
|
||||
if (rsp_obj->GetType() == a8::XOT_OBJECT) {
|
||||
#if 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user