完善同入同出逻辑

This commit is contained in:
bnala committed 2025-10-31 22:36:33 +08:00
1 parent e468808b68
commit e9ab25e88f
1 file changed
+1 -2
@@ -77,8 +77,7 @@ namespace WCS_YongFeng
InPort = pose.wcName InPort = pose.wcName
}; };
var exitdevice = App.f_ServiceModels.FirstOrDefault(b => b.device.Point == device.BackPoint); if (App.taskList.Any(a => a.ExitPlace == "EnterExit_P" + device.BackPoint))
if (exitdevice == null || App.taskList.Any(a => a.ExitPlace == exitdevice.device.Code))
{ {
vM_StationDACK.MessageID = 6; vM_StationDACK.MessageID = 6;
vM_StationDACK.LoadingStatus = 1; vM_StationDACK.LoadingStatus = 1;