修改通信消息判断顺序
This commit is contained in:
parent
b5a822afea
commit
388d647ba3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user