예제 #1
0
        // 服务器认证的回调
        public void ClientAuthenBlock(ResultModel result)
        {
            if (result.pack.Cmd != Cmd.CMD_AUTHEN)
            {
                return;
            }

            NetMessageManage.RemoveResultBlock(ClientAuthenBlock);
            // System.Console.WriteLine(result.pack);
            if (result.pack.Content.MessageType == 1)
            {
                //获取提前预知信息
                SysManage.RequestSysInfo(RequestSysInfoResult);
            }
            else
            {
                System.Console.WriteLine(result.pack);
                MessageBox.Show("认证失败");
            }
        }