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