From b6837f097e9cdb2645368aed4ddb03f580c331e4 Mon Sep 17 00:00:00 2001 From: z8018 <1282578289@qq.com> Date: 星期一, 05 五月 2025 17:29:07 +0800 Subject: [PATCH] 1 --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/GantryPositionJob.cs | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/GantryPositionJob.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/GantryPositionJob.cs" index e799eba..0bc55a0 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/GantryPositionJob.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/GantryPositionJob.cs" @@ -46,7 +46,10 @@ PositionR = hPositions[i * 4 + 3] }; - OPositions.HPositions.TryAdd(hDeviceChildCodes[i], position); + if(!OPositions.HPositions.TryAdd(hDeviceChildCodes[i], position)) + { + OPositions.HPositions[hDeviceChildCodes[i]] = position; + } } } } @@ -68,7 +71,10 @@ PositionR = zPositions[i * 4 + 3] }; - OPositions.ZPositions.TryAdd(zDeviceChildCodes[i], position); + if(! OPositions.ZPositions.TryAdd(zDeviceChildCodes[i], position)) + { + OPositions.ZPositions[zDeviceChildCodes[i]] = position; + } } } } -- Gitblit v1.9.3