日志调整及现场测试
All checks were successful
local-test分支打包构建docker并发布运行 / Docker-Build (push) Successful in 1m41s
All checks were successful
local-test分支打包构建docker并发布运行 / Docker-Build (push) Successful in 1m41s
This commit is contained in:
parent
38b1a79633
commit
8aebff96a5
5
third_party/train_pc_sim/train_pc_sim.go
vendored
5
third_party/train_pc_sim/train_pc_sim.go
vendored
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user