修改通信消息判断顺序

This commit is contained in:
sunzhenyu 2019-10-22 15:41:39 +08:00
parent b5a822afea
commit 388d647ba3

View File

@ -102,16 +102,16 @@ export function Jl3dDriving(updatemmi,sound) {
//
// }
switch (data.type) {
case 'Simulation_Driver_Change':
drivingcode = data.body.code;
// sound.volswitch = true;
updatemmi.updatedrivingcode( data.body.code);
break;
case 'Simulation_TrainSpeed':
trainspeed(data);
break;
case 'Simulation_Drive_Data_Routing':
updatemmi.updatedrivedata(data.body);
break;
case 'Simulation_Driver_Change':
drivingcode = data.body.code;
// sound.volswitch = true;
updatemmi.updatedrivingcode( data.body.code);
break;
case 'SJL3D_TrainStatus':
trainstatus(data);