diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Common/EventConts.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Common/EventConts.cs index 24e75984..d86cf61f 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Common/EventConts.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Common/EventConts.cs @@ -44,6 +44,8 @@ namespace GameLogic public const string UpLoadAnchorScoreTest = "http://test-api.ganfanxiaozu.com/api/dm/uploadAnchorScore"; public const string GetAnchorScore = "http://gapi-api.ganfanxiaozu.com/api/dm/getAnchorScore"; public const string GetAnchorScoreTest = "http://test-api.ganfanxiaozu.com/api/dm/getAnchorScore"; + public const string GetRank = "http://gapi-api.ganfanxiaozu.com/api/dm/avatar/rank"; + public const string GetRankTest = "http://test-api.ganfanxiaozu.com/api/dm/avatar/rank"; public static string GetRoomInfo = "http://gapi-api.ganfanxiaozu.com/api/dm/getRoomInfo"; #endregion public const string app_id = "tt906ce6d10f66ef3d10"; diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameModelManager.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameModelManager.cs index a35bf140..2371c74c 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameModelManager.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameModelManager.cs @@ -243,7 +243,50 @@ public class DataGameModelManager : GameBase.Singleton return null; throw; } - } + + // 家族 + //public async Task> C2S_GetJiaZuRank() + //{ + + // Dictionary testDic = new Dictionary(); + // testDic.Add("p", 100); + // testDic.Add("type", type); + + // string url = EventConts.PlatformType == PlatformType.None ? EventConts.GetAllRankTest : EventConts.GetAllRank; + // string jsonStr = ""; + // jsonStr = await HttpSendHelper.HttpPostRequestAsync(url, testDic.ToJson()); + + // Log.Info("收到排行榜请求回调:{0}", jsonStr); + + // try + // { + // PlayRankRootData playRankRootData = JsonHelper.Deserialize(jsonStr); + // if (playRankRootData != null && playRankRootData.code == 200) + // { + // return playRankRootData.data; + // } + // else + // { + // UITip.ShowMessageBox("世界榜单异常!Code:" + playRankRootData.code, MessageShowType.TwoButton, () => + // { + + // }, () => + // { + // //Application.Quit(); + // }); + // return null; + // } + // } + // catch (System.Exception e) + // { + // Log.Error("排行榜解析异常:" + e.Message); + // return null; + // throw; + // } + + //} + + } \ No newline at end of file diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameWorldRankForm.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameWorldRankForm.cs index 99a6ed53..02a8029b 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameWorldRankForm.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameWorldRankForm.cs @@ -121,23 +121,30 @@ namespace GameLogic } + // Ĭʾܰ - var data = await DataGameModelManager.Instance.C2S_GetResultRank(rankType); - m_PlayRankDatas = data; + List data = null; if (rankType == 1) { + data = await DataGameModelManager.Instance.C2S_GetResultRank(rankType); m_PlayRankDataWeek = m_PlayRankDatas; } else if (rankType == 2) { + data = await DataGameModelManager.Instance.C2S_GetResultRank(rankType); m_PlayRankDataMonth = m_PlayRankDatas; } else { + // 񵥵Ķ⴦ + m_PlayRankDataJiaZu = m_PlayRankDatas; } + + m_PlayRankDatas = data; + RefreshUI(); }