From 388d647ba324d681e89d52ac22d98328ce22312e Mon Sep 17 00:00:00 2001 From: sunzhenyu Date: Tue, 22 Oct 2019 15:41:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=80=9A=E4=BF=A1=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=88=A4=E6=96=AD=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js index 57be9c7db..f67da179f 100644 --- a/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js +++ b/src/jlmap3d/jl3ddrive/moveupdate/DrivingConnect.js @@ -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);