|
|
|
@ -24,6 +24,8 @@ public class ManualSuccState : IState
|
|
|
|
|
public StateResult Handle(SwappingStateMachine machine)
|
|
|
|
|
{
|
|
|
|
|
_log.Info($"'goto ManualSucc");
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
machine.ManualSwapSuccFlag = false;
|
|
|
|
|
if (machine.SwapOrderBatteryInfo.swapAmtOrder != null)
|
|
|
|
|
{
|
|
|
|
@ -47,6 +49,13 @@ public class ManualSuccState : IState
|
|
|
|
|
Reason = machine.OperateModel.Reason,
|
|
|
|
|
});
|
|
|
|
|
machine.Reset();
|
|
|
|
|
}
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
{
|
|
|
|
|
machine.Reset();
|
|
|
|
|
_log.Error($"ManualSuccState err={e}");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return new StateResult()
|
|
|
|
|
{
|
|
|
|
|
SwappingState = SwappingState.StationReady
|
|
|
|
|