|
|
|
@ -47,7 +47,7 @@ public class CarCtrlState : IState
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public InvokeStatus UnLockCar(SwappingStateMachine machine)
|
|
|
|
|
{
|
|
|
|
|
return Invoker.Invoke("UnLockCar", 500, 3, machine.IsCanceled,
|
|
|
|
|
return Invoker.Invoke("UnLockCar", 500, 5, machine.IsCanceled,
|
|
|
|
|
() => machine.VelUnlockFlag, () =>
|
|
|
|
|
{
|
|
|
|
|
Task<bool> result = TBoxApi.UnLockCarManyTimes(machine.RfidReadModel.VelVin);
|
|
|
|
@ -71,7 +71,7 @@ public class CarCtrlState : IState
|
|
|
|
|
|
|
|
|
|
SoundClient = AppInfo.Container.Resolve<SoundClient>();
|
|
|
|
|
SoundClient.SoundPlay(SoundEnum.music93);
|
|
|
|
|
Thread.Sleep(3000);
|
|
|
|
|
Thread.Sleep(6000);
|
|
|
|
|
SoundClient.SoundPlay(SoundEnum.music92);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -82,12 +82,12 @@ public class CarCtrlState : IState
|
|
|
|
|
LedClient.SendMsgByKey(InfoEnum.SwapInfo.ErrUnLockCar.GetLed());
|
|
|
|
|
SoundClient = AppInfo.Container.Resolve<SoundClient>();
|
|
|
|
|
|
|
|
|
|
SoundClient.SoundPlay(SoundEnum.music105);
|
|
|
|
|
Thread.Sleep(4000);
|
|
|
|
|
SoundClient.SoundPlay(SoundEnum.music106);
|
|
|
|
|
SoundClient.SoundPlay(SoundEnum.music106);
|
|
|
|
|
Thread.Sleep(7000);
|
|
|
|
|
SoundClient.SoundPlay(SoundEnum.music105);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, false, () => { machine.ExceptionReason = ExceptionReason.UnLockCarError; }
|
|
|
|
|
, 2, InvokeStatus.None);
|
|
|
|
|
, 4, InvokeStatus.None);
|
|
|
|
|
}
|
|
|
|
|
}
|