Ejemplo n.º 1
0
    /// <summary>
    /// 获取也签对应的区服列表数据
    /// </summary>
    private void GetGameServer(int pageIndex)
    {
        //先看看缓存是不是有数据了
        if (m_gameServerDic.ContainsKey(pageIndex))
        {
            //说明点击相同页签
            m_uIGameServerSelectView.SetGameServerUI(m_gameServerDic[pageIndex], OnClickGameServerItemCallback);
            return;
        }
        //获取页签
        Dictionary <string, object> dic = new Dictionary <string, object>();

        dic["Type"]        = 1; //type = 0 获取页签   1 是服务器列表
        dic["PageIndex"]   = pageIndex;
        m_currentClickPage = pageIndex;
        if (m_isBusy == true)
        {
            return;
        }
        m_isBusy = true;
        NetWorkHttp.Instance.SendData(GlobalInit.WebAccountUrl + "api/GameServer", true, dic, OnGetGameServerCallback);
    }