|
|
|
@ -37,7 +37,7 @@ public class SwapDoneState : IState
|
|
|
|
|
{
|
|
|
|
|
//上传云平台换电状态
|
|
|
|
|
machine.BusinessSwappingForCloudState = InfoEnum.BusinessSwappingForCloudState.SwapDoneWithVel;
|
|
|
|
|
// CloudApi.SendStateLog(machine.SwapOrder, machine.BusinessSwappingForCloudState);
|
|
|
|
|
// CloudApi.SendStateLog(machine.SwapOrder, machine.BusinessSwappingForCloudState);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//云平台没有匹配的失败状态
|
|
|
|
@ -56,9 +56,11 @@ public class SwapDoneState : IState
|
|
|
|
|
return SwappingStateMachine.ReturnWithInvokeErr(existRadar, ExceptionReason.None);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//新增换电成功上报云平台数据
|
|
|
|
|
_CommonMgr.InsertCloudReportForSwapSuccess(machine);
|
|
|
|
|
//换电成功关于bininfo表的更新
|
|
|
|
|
_CommonMgr.UpdateBinInfoForSwapSuccess(machine);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new StateResult()
|
|
|
|
|
{
|
|
|
|
|
SwappingState = SwappingState.StationReady
|
|
|
|
@ -102,7 +104,7 @@ public class SwapDoneState : IState
|
|
|
|
|
}
|
|
|
|
|
}, () =>
|
|
|
|
|
{
|
|
|
|
|
// machine.LedTool?.WriteProgramContent(InfoEnum.SwapInfo.ErrLockCar.GetLed());
|
|
|
|
|
// machine.LedTool?.WriteProgramContent(InfoEnum.SwapInfo.ErrLockCar.GetLed());
|
|
|
|
|
SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.ErrLockCar);
|
|
|
|
|
}, false, () => { machine.ExceptionReason = ExceptionReason.LockCarError; }
|
|
|
|
|
, 10, InvokeStatus.None);
|
|
|
|
|