This commit is contained in:
aozhiwei 2023-09-21 17:43:03 +08:00
parent 8e22df2298
commit 79e79634e0

View File

@ -81,6 +81,12 @@ void CustomBattle::ParseResult(a8::XObject& obj)
bool CustomBattle::CanAdd(const std::string& account_id, const std::string& session_id)
{
auto member = GetMemberByAccountId(account_id);
if (!member) {
return false;
}
if (member->IsJoined()) {
return false;
}
return true;
}