修复重现时间没有转换成本地时间的bug
This commit is contained in:
parent
ea717ccdb8
commit
3307d96ff3
@ -93,7 +93,7 @@ namespace Assets.Scenes.Ride.Scripts
|
|||||||
{
|
{
|
||||||
SaveRide(null);
|
SaveRide(null);
|
||||||
}
|
}
|
||||||
//显示结果(观察者要等到赛事结束才弹出)
|
////显示结果(观察者要等到赛事结束才弹出)
|
||||||
var ishowResult = ((competitionModel.mapCompetition?.HasRecord ?? false) || competitionModel.recorderData.Saved) || (mainController.isWatch && competitionModel.CanQuit());
|
var ishowResult = ((competitionModel.mapCompetition?.HasRecord ?? false) || competitionModel.recorderData.Saved) || (mainController.isWatch && competitionModel.CanQuit());
|
||||||
if (ishowResult)
|
if (ishowResult)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -94,10 +94,6 @@ namespace Assets.Scenes.Ride.Scripts.Model.CyclingModels
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (recorderData.Saved)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (recorderData.RiderDatas.Any())
|
if (recorderData.RiderDatas.Any())
|
||||||
{
|
{
|
||||||
var lastData = recorderData.RiderDatas.Last();
|
var lastData = recorderData.RiderDatas.Last();
|
||||||
|
|||||||
@ -367,7 +367,7 @@ namespace Assets.Scenes.Ride.Scripts.Model.CyclingModels
|
|||||||
return (end1, false);
|
return (end1, false);
|
||||||
}
|
}
|
||||||
//var end2 = (int)Math.Floor((FirstEndTime.Value - Now).TotalSeconds);
|
//var end2 = (int)Math.Floor((FirstEndTime.Value - Now).TotalSeconds);
|
||||||
var end2 = (int)Math.Floor((FirstEndTime.Value.AddMinutes(mapCompetition.CloseTime) - Now).TotalSeconds);
|
var end2 = (int)Math.Floor((FirstEndTime.Value.ToLocalTime().AddMinutes(mapCompetition.CloseTime) - Now).TotalSeconds);
|
||||||
if (end1 < end2)
|
if (end1 < end2)
|
||||||
{
|
{
|
||||||
return (end1, false);
|
return (end1, false);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user