android端发布前微调

This commit is contained in:
lishuo committed 2022-07-06 17:48:55 +08:00
1 parent d38330d969
commit bd9696cd81
34 files changed
+859 -934

No files matched your search

@@ -291,6 +291,9 @@ namespace Assets.Scenes.Ride.Scripts
//计算当前海拔和坡度&当前区间距离
elevation = pointList[CurrentIndex].Elevation;
currentSlope = pointList[CurrentIndex].Grade;
//格式化坡度最大不能超过15,-15
PreSlope = PreSlope > 0 ?Math.Min(PreSlope, 15) : Math.Max(PreSlope, -15);
currentSlope = currentSlope > 0? Math.Min(PreSlope, 15) : Math.Max(PreSlope, -15);
CurrentDistance = pointList[CurrentIndex].Distance;
//计算下一个海拔和坡度&当前区间距离
nextSlope = pointList[nextIndex].Grade;
@@ -148,22 +148,12 @@ namespace Assets.Scenes.Ride.Scripts
DrawMapRouteAsync(route.Id);
AddProcess(10);
//查询排行榜
var list = mapApi.GetRouteRanking(route.Id, "1", 0, 10000, "");
var list = mapApi.GetRouteRanking(route.Id, "1", 0, 8, "");
if (list.result)
{
//if (list.data.list.Count > RankingPageSize)
//{
// var ViewAll = panel.transform.Find("ViewAll").gameObject;
// ViewAll.SetActive(true);
// UIManager.AddEvent(ViewAll, UnityEngine.EventSystems.EventTriggerType.PointerClick, b =>
// {
// Application.OpenURL($"{App.CurrentUser.WebHost}Routes/{cyclingController.mapRoute.Id}?Token={App.CurrentUser.cookie}");
// });
//}
CreateRankingList(list.data.list);
AddProcess(10);
}
//StartCoroutine(HiddenLoading());
}
//创建排行榜