/// <summary>
 /// 设置社交服
 /// </summary>
 public static void SetSocialS(GameSession ss)
 {
     //判断
     if (!ss.IsAuthorized || ss.UserId != (int)GlobalDefine.ServerIdType.SocialId)
     {
         TraceLog.WriteError("非法开启社交服");
         return;
     }
     ServerSsMgr.AddSession(ss);
     //
     TraceLog.WriteLine("社交服加入成功");
 }
 /// <summary>
 /// 设置大厅服
 /// </summary>
 public static void SetLS(int serverId, GameSession ss)
 {
     //判断
     if (!ss.IsAuthorized)
     {
         TraceLog.WriteError("非法开启大厅服,ServerId:{0}", serverId);
         return;
     }
     ServerSsMgr.SetLobbySession(ss);
     ServerSsMgr.AddSession(ss);
     //
     TraceLog.WriteLine("大厅服加入成功");
 }
        /// <summary>
        /// 增加连接服
        /// </summary>
        static public void AddCS(int serverId, GameSession ss)
        {
            //判断
            if (!ss.IsAuthorized)
            {
                TraceLog.WriteError("非法开启连接服,ServerId:{0}", serverId);
                return;
            }
            //加入
            var sConnectServer = new SConnectServer()
            {
                ServerId = serverId, Status = ServerStatus.Connected, CSSid = ss.SessionId, UserId = ss.UserId
            };

            sConnectServerSet.Add(sConnectServer);

            ServerSsMgr.AddSession(ss);
            //
            TraceLog.WriteLine("连接服加入成功,ServerId:{0},剩余:{1}", serverId, sConnectServerSet.FindAll(false).Count);
        }