public static void ProcessUnRegisterUserIDsQueue() { long nowTicks = TimeUtil.NOW(); DelayUnRegisterUserIDItem item = null; lock (UnregisterUserIDMgr.UnRegisterUserIDsList) { if (UnregisterUserIDMgr.UnRegisterUserIDsList.Count > 0) { if (nowTicks - UnregisterUserIDMgr.UnRegisterUserIDsList[0].StartTicks >= 30000L) { item = UnregisterUserIDMgr.UnRegisterUserIDsList[0]; UnregisterUserIDMgr.UnRegisterUserIDsList.RemoveAt(0); } } } if (null != item) { GameManager.DBCmdMgr.AddDBCmd(10025, string.Format("{0}:{1}:{2}", item.UserID, GameManager.ServerLineID, 0), null, item.ServerId); } }
/// <summary> /// 处理反注册的用户ID /// </summary> public static void ProcessUnRegisterUserIDsQueue() { long nowTicks = TimeUtil.NOW(); DelayUnRegisterUserIDItem item = null; lock (UnRegisterUserIDsList) { if (UnRegisterUserIDsList.Count > 0) { if (nowTicks - UnRegisterUserIDsList[0].StartTicks >= (30 * 1000)) //留出30秒钟后给系统处理,提示用户一分钟后才能登录 { item = UnRegisterUserIDsList[0]; UnRegisterUserIDsList.RemoveAt(0); } } } if (null != item) { GameManager.DBCmdMgr.AddDBCmd((int)TCPGameServerCmds.CMD_DB_REGUSERID, string.Format("{0}:{1}:{2}", item.UserID, GameManager.ServerLineID, 0), null, item.ServerId); } }