diff --git a/Service/Execute/Step/ManualSuccState.cs b/Service/Execute/Step/ManualSuccState.cs index ddebcbe..dc3f0c3 100644 --- a/Service/Execute/Step/ManualSuccState.cs +++ b/Service/Execute/Step/ManualSuccState.cs @@ -24,7 +24,7 @@ public class ManualSuccState : IState AppInfo.Container.Resolve(); public StateResult Handle(SwappingStateMachine machine) { - _log.Info($"'goto ManualSucc"); + _log.Info($"goto ManualSucc"); try { machine.ManualSwapSuccFlag = false; diff --git a/Service/Execute/SwappingStateMachine.cs b/Service/Execute/SwappingStateMachine.cs index 624a088..49d0ded 100644 --- a/Service/Execute/SwappingStateMachine.cs +++ b/Service/Execute/SwappingStateMachine.cs @@ -282,6 +282,8 @@ public class SwappingStateMachine : IDisposable BusinessSwappingForCloudState = InfoEnum.BusinessSwappingForCloudState.Idle; BusinessSwappingStateUpdateTime = DateTime.Now; ExceptionReason = ExceptionReason.None; + OperateModel = null; + ; //换电实时状态 0:开始 1:成功 2:失败 SwapStatus = null; diff --git a/Service/Mgr/PlcTaskMgr.cs b/Service/Mgr/PlcTaskMgr.cs index c8290ec..318df04 100644 --- a/Service/Mgr/PlcTaskMgr.cs +++ b/Service/Mgr/PlcTaskMgr.cs @@ -32,7 +32,7 @@ public class PlcTaskMgr $"PlcTaskMgr.QueryPlcTask taskNo={taskNo} execute fail readPlcTaskStatus={readPlcTaskStatus}"); throw new Exception("PlcTaskMgr.QueryPlcTask readPlcTaskStatus=" + readPlcTaskStatus); } - else if (9000 == readPlcTaskStatus) + else if (9000 == readPlcTaskStatus || 1001== readPlcTaskStatus ) { isSuccess = true; }