From 9f7b8c0d5a856edacb5ef8f7eab97827924f3597 Mon Sep 17 00:00:00 2001 From: weizhihong Date: Thu, 7 Sep 2023 16:04:55 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8D=8A=E5=AE=9E=E7=89=A9log?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ats/verify/simulation/simulation_manage.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ats/verify/simulation/simulation_manage.go b/ats/verify/simulation/simulation_manage.go index 43c9941..53048c2 100644 --- a/ats/verify/simulation/simulation_manage.go +++ b/ats/verify/simulation/simulation_manage.go @@ -2,6 +2,7 @@ package simulation import ( "encoding/binary" + "encoding/hex" "math" "fmt" @@ -35,9 +36,11 @@ func init() { panic(dto.ErrorDto{Code: dto.ArgumentParseError, Message: err.Error()}) } trainInfo := decoderVobcTrainState(info) - zap.S().Info("接收到vobc发送的列车消息", trainInfo) + zap.S().Info("接收到vobc发送的列车消息", trainInfo, hex.EncodeToString(info)) + d := append(info, uint8(trainId)) // 发送给动力学 - dynamics.SendDynamicsTrainMsg(append(info, uint8(trainId))) + dynamics.SendDynamicsTrainMsg(d) + zap.S().Info("发送后:", hex.EncodeToString(d)) // 存放至列车中 train.VobcState = trainInfo return true