修改离线满10分钟清理玩家缓存

back_recharge
duhui 2023-02-15 16:58:55 +08:00
parent 860a126523
commit 4692f2804a
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public class UserManager {
private static Map<Integer,Long> userMapPutTime = new ConcurrentHashMap<>(); //离线读入
private static AtomicInteger login_f_num = new AtomicInteger(0);//登陆计数
private static final int LOGIN_F_LIMIT = 100;//报警界限
private static final long LIVE_TIME = 3 * 60 * 60 * 1000L;
private static final long LIVE_TIME = 10 * 60 * 1000L;
public static void addUser(User user) {
userMap.put(user.getId(), user);