修复DecAccountNum安全隐患

This commit is contained in:
aozhiwei 2020-06-03 14:48:57 +08:00
parent 57d1d278ff
commit aefd7d8878

View File

@ -177,6 +177,8 @@ void PlayerMgr::DecAccountNum(const std::string& account_id)
itr->second itr->second
} }
); );
}
if (itr->second <= 0) {
account_num_hash_.erase(itr); account_num_hash_.erase(itr);
} }
} else { } else {