mirror of
https://github.com/denglihong2007/CRSim
synced 2026-08-07 10:05:49 +08:00
fix: 部分情况下车厢指示不当
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user