fix: 部分情况下车厢指示不当

This commit is contained in:
denglihong2007
2025-03-15 23:12:04 +08:00
parent d34c263a42
commit e6224a8d50

View File

@@ -12,6 +12,10 @@ namespace CRSim.Converters
{
if(value is int l)
{
if (l < 9)
{
return $"1-{l}";
}
if (l % 2 == 0)
{
return (new List<string> { $"1-{l / 2}", $"{l / 2 + 1}-{l}" })[l.GetHashCode() % 2];