diff --git a/Entity/Constant/InfoEnum.cs b/Entity/Constant/InfoEnum.cs index 536064e..cdb22b8 100644 --- a/Entity/Constant/InfoEnum.cs +++ b/Entity/Constant/InfoEnum.cs @@ -46,6 +46,7 @@ public class InfoEnum [Info("车辆驶入","车辆驶入")] CarInInfo, [Info("换电任务启动","换电任务启动")] StartSwapInfo, [Info("航车拍照中,请稍后","航车拍照中,请稍后")] CarTakePhotoInfo, + [Info("启动换电失败,请联系站务人员","启动换电失败,请联系站务人员")] ErrStartSwap, } diff --git a/Service/Execute/Step/DoSwappingState.cs b/Service/Execute/Step/DoSwappingState.cs index cd5eea0..91e33b8 100644 --- a/Service/Execute/Step/DoSwappingState.cs +++ b/Service/Execute/Step/DoSwappingState.cs @@ -135,7 +135,10 @@ public class DoSwappingState : IState machine); } } - }, () => { }); + }, () => + { + SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.ErrStartSwap); + },false, () => { },10,InvokeStatus.None); }