diff --git a/ats/verify/simulation/wayside/memory/wayside_memory_relay.go b/ats/verify/simulation/wayside/memory/wayside_memory_relay.go index 68d162d..70afc9b 100644 --- a/ats/verify/simulation/wayside/memory/wayside_memory_relay.go +++ b/ats/verify/simulation/wayside/memory/wayside_memory_relay.go @@ -10,13 +10,13 @@ import ( func GetMapAllRelayState(sim *VerifySimulation, mapId int32) []*state.ReplyState { // 获取本地图下的继电器信息 uidMap := QueryMapUidMapByType(mapId, &graphicData.Relay{}) - var switchArr []*state.ReplyState + var replyStateArr []*state.ReplyState for _, u := range uidMap { p := entities.GetRelayState(sim.WorldId, u.Uid) if p == nil { continue } - switchArr = append(switchArr, &state.ReplyState{Id: u.CommonId, Xh: p.Xh}) + replyStateArr = append(replyStateArr, &state.ReplyState{Id: u.CommonId, Xh: p.Xh}) } - return switchArr + return replyStateArr }