From 324345b8c20d34b61cf1ccb3b41af419b688567e Mon Sep 17 00:00:00 2001 From: denglihong2007 <98096191+denglihong2007@users.noreply.github.com> Date: Sun, 14 Dec 2025 01:09:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=97=E8=BD=A6=E5=A7=8B=E5=8F=91?= =?UTF-8?q?=E7=BB=88=E5=88=B0=E7=B1=BB=E5=9E=8B=E8=AF=86=E5=88=AB=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CRSim.Core/Services/NetworkService.cs | 12 +++++++++--- CRSim.PlatformDiagram/CRSim.PlatformDiagram.csproj | 1 + CRSim.sln | 1 + CRSim/CRSim.csproj | 6 +++--- CRSim/Properties/PublishProfiles/win-x64.pubxml | 2 +- 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CRSim.Core/Services/NetworkService.cs b/CRSim.Core/Services/NetworkService.cs index 1ad1fc1..b782f7e 100644 --- a/CRSim.Core/Services/NetworkService.cs +++ b/CRSim.Core/Services/NetworkService.cs @@ -121,15 +121,21 @@ namespace CRSim.Core.Services var startTimeStr = item.GetProperty("start_time").GetString(); TimeSpan? arriveTime = null; TimeSpan? startTime = null; - if (arriveTimeStr != "----") + if (item.GetProperty("start_station_name").ToString() != name) { arriveTime = TimeSpan.Parse(arriveTimeStr); } - if (startTimeStr != arriveTimeStr) + if (item.GetProperty("end_station_name").ToString() != name) { startTime = TimeSpan.Parse(startTimeStr); } - trainStops.Add(new TrainStop() { Number = item.GetProperty("station_train_code").ToString(), Terminal = item.GetProperty("end_station_name").ToString(), Origin = item.GetProperty("start_station_name").ToString(), ArrivalTime = arriveTime, DepartureTime = startTime }); + trainStops.Add(new TrainStop() + { + Number = item.GetProperty("station_train_code").ToString(), + Terminal = item.GetProperty("end_station_name").ToString(), + Origin = item.GetProperty("start_station_name").ToString(), + ArrivalTime = arriveTime, + DepartureTime = startTime }); } return trainStops; } diff --git a/CRSim.PlatformDiagram/CRSim.PlatformDiagram.csproj b/CRSim.PlatformDiagram/CRSim.PlatformDiagram.csproj index 6dfb882..2d8f204 100644 --- a/CRSim.PlatformDiagram/CRSim.PlatformDiagram.csproj +++ b/CRSim.PlatformDiagram/CRSim.PlatformDiagram.csproj @@ -11,6 +11,7 @@ + diff --git a/CRSim.sln b/CRSim.sln index f0c2e8b..47393fc 100644 --- a/CRSim.sln +++ b/CRSim.sln @@ -34,6 +34,7 @@ Global {895EE8B3-1A15-4CA8-9AFE-246585732AA5}.Debug|x64.ActiveCfg = Debug|x64 {895EE8B3-1A15-4CA8-9AFE-246585732AA5}.Debug|x64.Build.0 = Debug|x64 {895EE8B3-1A15-4CA8-9AFE-246585732AA5}.Release|x64.ActiveCfg = Release|x64 + {895EE8B3-1A15-4CA8-9AFE-246585732AA5}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/CRSim/CRSim.csproj b/CRSim/CRSim.csproj index f14fed8..10c8c93 100644 --- a/CRSim/CRSim.csproj +++ b/CRSim/CRSim.csproj @@ -5,8 +5,8 @@ 10.0.19041.0 CRSim app.manifest - x86;x64;ARM64;AnyCPU - win-x86;win-x64;win-arm64 + x64;AnyCPU + win-x64; win-$(Platform).pubxml true true @@ -44,7 +44,7 @@ - + diff --git a/CRSim/Properties/PublishProfiles/win-x64.pubxml b/CRSim/Properties/PublishProfiles/win-x64.pubxml index ac2fbba..2c0043b 100644 --- a/CRSim/Properties/PublishProfiles/win-x64.pubxml +++ b/CRSim/Properties/PublishProfiles/win-x64.pubxml @@ -11,7 +11,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121. true false Release - net9.0-windows10.0.19041.0 + net10.0-windows10.0.19041.0 false \ No newline at end of file