From 8aebff96a53e4b51939d19158d8b18ac860985cd Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Fri, 14 Jun 2024 13:19:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=B0=83=E6=95=B4=E5=8F=8A?= =?UTF-8?q?=E7=8E=B0=E5=9C=BA=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- third_party/train_pc_sim/train_pc_sim.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/third_party/train_pc_sim/train_pc_sim.go b/third_party/train_pc_sim/train_pc_sim.go index 1a8b185..8aeeeca 100644 --- a/third_party/train_pc_sim/train_pc_sim.go +++ b/third_party/train_pc_sim/train_pc_sim.go @@ -65,7 +65,8 @@ type trainPcReciverData struct { } func (rd *trainPcReciverData) receiverDataHandle(n int, data []byte) { - + hexSourceData := hex.EncodeToString(data) + slog.Info(fmt.Sprintf("pc仿真接收数据:%v,类型:%v", hexSourceData, hexSourceData)) connType := state_proto.TrainConnState_PC_SIM_A if rd.clientKey == "B" { connType = state_proto.TrainConnState_PC_SIM_B @@ -77,7 +78,7 @@ func (rd *trainPcReciverData) receiverDataHandle(n int, data []byte) { slog.Error("车载pc仿真接受数据解析失败 ") return } - slog.Info(fmt.Sprintf("pc仿真接收数据:%v,类型:%v", hex.EncodeToString(data), baseMsg.Type)) + slog.Info(fmt.Sprintf("pc仿真接收数据:%v,类型:%v", hexSourceData, baseMsg.Type)) switch baseMsg.Type { //case RECIVE_TRAIN_CREATE_REMOVE: // pc.trainPcSimManage.TrainPcSimConnOrRemoveHandle(baseMsg.Data[0])