处理排行榜家族需求的部分逻辑
This commit is contained in:
parent
a55075d00a
commit
ea67f9b440
@ -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";
|
||||
|
@ -243,7 +243,50 @@ public class DataGameModelManager : GameBase.Singleton<DataGameModelManager>
|
||||
return null;
|
||||
throw;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 家族
|
||||
//public async Task<List<PlayRankData>> C2S_GetJiaZuRank()
|
||||
//{
|
||||
|
||||
// Dictionary<string, int> testDic = new Dictionary<string, int>();
|
||||
// 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<PlayRankRootData>(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;
|
||||
// }
|
||||
|
||||
//}
|
||||
|
||||
|
||||
}
|
@ -121,24 +121,31 @@ namespace GameLogic
|
||||
|
||||
}
|
||||
|
||||
|
||||
// ĬÈÏÏÔʾÖܰñ
|
||||
var data = await DataGameModelManager.Instance.C2S_GetResultRank(rankType);
|
||||
m_PlayRankDatas = data;
|
||||
List<PlayRankData> 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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user