From 968a46fbe7a7ddd6e400a3c14bf1aa7a7ef0ec69 Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Mon, 20 May 2024 17:59:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=BD=A6pc=E4=BB=BF=E7=9C=9F=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ts/simulation/wayside/memory/wayside_memory_train.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts/simulation/wayside/memory/wayside_memory_train.go b/ts/simulation/wayside/memory/wayside_memory_train.go index 1fb0fb3..0d6fe89 100644 --- a/ts/simulation/wayside/memory/wayside_memory_train.go +++ b/ts/simulation/wayside/memory/wayside_memory_train.go @@ -291,6 +291,9 @@ func UpdateTrainStateByDynamics(vs *VerifySimulation, trainId string, info *mess panic(sys_error.New(fmt.Sprintf("动力学传输数据:列车【%s】不存在", trainId))) } sta := data.(*state_proto.TrainState) + if !sta.Show { + return sta + } delayTime := time.Now().UnixMilli() - sta.VobcState.UpdateTime sta.ControlDelayTime = (int64(sta.VobcState.LifeSignal)-int64(info.VobcLifeSignal))*20 + delayTime