fix: 站台车厢位置提示文本错误

This commit is contained in:
denglihong2007
2025-04-11 00:44:20 +08:00
parent 52db0d006c
commit c18edb0ca7

View File

@@ -30,15 +30,23 @@ namespace CRSim.ScreenSimulator.Converters
{
if (Location > Length)
{
return $"当前无车1-{Length}车向。";
return $"当前无车1-{Length}车向。";
}
if (Location == Length)
{
return $"当前{Length}车1-{Length-1}车向。";
return $"当前{Location}车1-{Length-1}车向。";
}
if (Location == 1)
{
return $"当前1车2-{Length}车向。";
return $"当前1车2-{Length}车向。";
}
if (Location == Length-1)
{
return $"当前{Location}车1-{Location - 1}车向前,{Length}车向后。";
}
if (Location == 2)
{
return $"当前2车1车向前3-{Length}车向后。";
}
return $"当前{Location}车1-{Location - 1}车向前,{Location + 1}-{Length}车向后。";
}