修改确认加解锁

master
赵宝玉 1 month ago
parent d5a097e022
commit 9c72aa6562

@ -53,7 +53,7 @@ public class CarCtrlState : IState
Task<bool> result = TBoxApi.UnLockCarManyTimes(machine.RfidReadModel.VelVin);
bool unLock = result.Result;
if (unLock)
if (unLock|| machine.ManualConfirmCarUnlockFlag)
{
//查询车辆锁止状态
Task<TboxCarInfoModel> carInfo = TBoxApi.GetCarInfo(machine.RfidReadModel.VelVin);

@ -200,7 +200,7 @@ public class SwapDoneState : IState
Task<bool> result = TBoxApi.LockCarManyTimes(machine.RfidReadModel.VelVin);
bool unLock = result.Result;
if (unLock)
if (unLock|| machine.ManualConfirmCarLockFlag)
{
//查询车辆锁止状态
@ -211,7 +211,7 @@ public class SwapDoneState : IState
machine,param: $"lock: {unLock} ; heartMsg: {JsonConvert.SerializeObject(carInfo.Result)}",type:
machine.ManualConfirmCarLockFlag? (int)SwapConstant.StepType.MANUAL :
(int)SwapConstant.StepType.AUTO);
machine.ManualConfirmCarLockFlag = false;
//_CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.VelLockFlag,
// machine);
var SoundClient = AppInfo.Container.Resolve<SoundClient>();

Loading…
Cancel
Save