From 672060a49728a798e7739acb90051b14ea677271 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Mon, 30 Oct 2023 10:09:58 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E8=81=94=E9=94=81?= =?UTF-8?q?=E6=94=B6=E9=9B=86=E7=BB=A7=E7=94=B5=E5=99=A8=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ts/simulation/wayside/memory/wayside_simulation.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ts/simulation/wayside/memory/wayside_simulation.go b/ts/simulation/wayside/memory/wayside_simulation.go index ebf5317..b795f6b 100644 --- a/ts/simulation/wayside/memory/wayside_simulation.go +++ b/ts/simulation/wayside/memory/wayside_simulation.go @@ -347,13 +347,10 @@ func (s *VerifySimulation) GetInterlockRunConfig() *config.InterlockConfig { func (s *VerifySimulation) CollectInterlockRelayInfo() []*message.InterlockSendMsgPkg { var msgPkgs []*message.InterlockSendMsgPkg for _, mapId := range s.MapIds { // 获取继电器地图信息 - var mapData *graphicData.RelayCabinetGraphicStorage - switch QueryOnlyGiType(mapId) { - case graphicData.PictureType_RelayCabinetLayout: // 继电器柜 - mapData = QueryGiData[*graphicData.RelayCabinetGraphicStorage](mapId) - default: + if QueryOnlyGiType(mapId) != graphicData.PictureType_RelayCabinetLayout { // 继电器柜 continue } + mapData := QueryGiData[*graphicData.RelayCabinetGraphicStorage](mapId) // 配置继电器为空 dataLenght := len(mapData.CiCjList.CjList) * int(mapData.CiCjList.DsCount) if dataLenght == 0 {