LaneIn - Merge isAutoOpenDoor && this.doorId == doorId

This commit is contained in:
DucDangAnh 2020-06-29 11:46:07 +07:00
parent 34fc28a0d8
commit f280376752

View File

@ -91,9 +91,7 @@ namespace AIParkingApplication
var saveLogResult = await apiController.SaveLog(LaneDirection.In, cardInformation.CardRealID.ToString(), "1", result.PlateType, DateTime.Now.ToString(AppConstant.DATETIME_FORMAT), result.PlateString, result.PlateImage, result.PlateImage, result.PlateImage, overviewVideoFrame);
if (saveLogResult.Status)
{
if (isAutoOpenDoor)
{
if (this.doorId == doorId)
if (isAutoOpenDoor && this.doorId == doorId)
{
var openDoorResult = c3Device.OpenDoor(doorId);
if (openDoorResult.HasError)
@ -106,7 +104,6 @@ namespace AIParkingApplication
}
}
}
}
else
{
lblRecogizePlateStatus.Invoke(new Action(() =>