修复车加锁成功返回失败后卡在步骤不动

master
赵宝玉 3 weeks ago
parent 941a288d95
commit d176927a99

@ -200,12 +200,12 @@ public class SwapDoneState : IState
Task<bool> result = TBoxApi.LockCarManyTimes(machine.RfidReadModel.VelVin);
bool unLock = result.Result;
if (unLock|| machine.ManualConfirmCarLockFlag)
if (unLock|| machine.ManualConfirmCarLockFlag|| PadarMgr._PadarClient!.CarState == 1)
{
//查询车辆锁止状态
Task<TboxCarInfoModel> carInfo = TBoxApi.GetCarInfo(machine.RfidReadModel.VelVin);
if (carInfo.Result?.CarStatus?.LockStatus == 2 || machine.ManualConfirmCarLockFlag)
if (carInfo.Result?.CarStatus?.LockStatus == 2 || machine.ManualConfirmCarLockFlag|| PadarMgr._PadarClient!.CarState == 1)
{
_CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.VelLockFlag,
machine,param: $"lock: {unLock} ; heartMsg: {JsonConvert.SerializeObject(carInfo.Result)}",type:

Loading…
Cancel
Save