探索相关报错

back_recharge
xuexinpeng 2022-01-26 13:44:38 +08:00
parent 0c84030817
commit 36e8abdb61
1 changed files with 7 additions and 0 deletions

View File

@ -275,6 +275,13 @@ public class ExplorerMapLogic {
Set<Integer> uids = OnlineUserManager.sessionMap.keySet();
for (int uid : uids) {
User user = UserManager.getUser(uid);
if(user == null){
continue;
}
//登录一分钟后才执行 避免消息线程和分钟线程同时修改数据
if(TimeUtils.now() < user.getPlayerInfoManager().getLoginTime()+60000){
continue;
}
Map<Integer, ExplorerInfo> explorer = user.getPlayerInfoManager().getExplorer();
if (explorer == null || explorer.size() == 0) {
continue;