Merge branch 'master_prb_gn' into master_test_gn

back_recharge
xuexinpeng 2022-02-10 16:46:56 +08:00
commit 1ccd802b2d
1 changed files with 8 additions and 0 deletions

View File

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