From f2ef5fa3754370096e4fe1a8b216e27f7ce76e6c Mon Sep 17 00:00:00 2001 From: lxw Date: Thu, 30 May 2024 16:32:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=8D=A2=E7=94=B5=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E8=AF=AD=E9=9F=B3=E6=92=AD=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Entity/Constant/InfoEnum.cs | 1 + Service/Execute/Step/DoSwappingState.cs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) 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); }