1
This commit is contained in:
parent
1f6cd95ce0
commit
96841a0deb
@ -14,7 +14,20 @@ void CustomBattle::UnInit()
|
|||||||
|
|
||||||
void CustomBattle::ParseResult(a8::XObject& obj)
|
void CustomBattle::ParseResult(a8::XObject& obj)
|
||||||
{
|
{
|
||||||
|
if (!obj.HasKey("errcode")) {
|
||||||
|
parse_ok_ = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
room_id_ = obj.Get("room_id").GetString();
|
||||||
|
room_uuid_ = obj.Get("room_uuid").GetString();
|
||||||
|
zone_id_ = obj.Get("zone_id");
|
||||||
|
node_id_ = obj.Get("node_id");
|
||||||
|
start_time_ = obj.Get("start_time");
|
||||||
|
sign_ = obj.Get("sign").GetString();
|
||||||
|
|
||||||
|
raw_data_ = std::make_shared<a8::XObject>();
|
||||||
|
obj.DeepCopy(*raw_data_);
|
||||||
|
parse_ok_ = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CustomBattle::CanAdd(const std::string& account_id, const std::string& session_id)
|
bool CustomBattle::CanAdd(const std::string& account_id, const std::string& session_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user