日志调整及现场测试
All checks were successful
local-test分支打包构建docker并发布运行 / Docker-Build (push) Successful in 1m45s
All checks were successful
local-test分支打包构建docker并发布运行 / Docker-Build (push) Successful in 1m45s
This commit is contained in:
parent
807bce391c
commit
cbd2c4a0ab
3
third_party/train_pc_sim/train_pc_sim.go
vendored
3
third_party/train_pc_sim/train_pc_sim.go
vendored
@ -70,13 +70,14 @@ func (rd *trainPcReciverData) receiverDataHandle(n int, data []byte) {
|
||||
if rd.clientKey == "B" {
|
||||
connType = state_proto.TrainConnState_PC_SIM_B
|
||||
}
|
||||
|
||||
baseMsg := &message.TrainPcSimBaseMessage{}
|
||||
err := baseMsg.Decode(data)
|
||||
if err != nil {
|
||||
slog.Error("车载pc仿真接受数据解析失败 ")
|
||||
return
|
||||
}
|
||||
|
||||
slog.Info(fmt.Sprintf("pc仿真接收数据:%v,类型:%v", hex.EncodeToString(data), baseMsg.Type))
|
||||
switch baseMsg.Type {
|
||||
//case RECIVE_TRAIN_CREATE_REMOVE:
|
||||
// pc.trainPcSimManage.TrainPcSimConnOrRemoveHandle(baseMsg.Data[0])
|
||||
|
Loading…
Reference in New Issue
Block a user