From f49b5767c73d3f57f2687cd9a8111c39f0d94395 Mon Sep 17 00:00:00 2001 From: yvan Date: Thu, 10 Jul 2025 18:59:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B0=E6=B9=BE=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tw_zh/scripts/ZH_CL2.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tw_zh/scripts/ZH_CL2.ts b/tw_zh/scripts/ZH_CL2.ts index 88678cc..da4000a 100644 --- a/tw_zh/scripts/ZH_CL2.ts +++ b/tw_zh/scripts/ZH_CL2.ts @@ -1,11 +1,11 @@ const gstore = '504_501' const agvId = '1' const demoLocList = ['rack1/0/1/0', 'rack1/1/1/0', 'rack1/2/1/0', 'rack1/3/1/0'] -const demoLocList2 = [ ...demoLocList ].reverse() while (true) { const [carInv] = (await LCC.queryInv({ rack: agvId, bay: 0, level: 0, cell: 0 })).data const [dd] = (await LCC.queryInv({ rack: gstore })).data + demoLocList.reverse() if (dd) { // 地堆上有托盘, 找一个空货位放过去 @@ -65,7 +65,7 @@ async function findFreeLoc(){ } async function findRackInvLoc(){ - for (const loc of demoLocList2) { + for (const loc of demoLocList) { const [rack, bay, level, cell] = loc.split('/') const [palletLoc] = (await LCC.queryInv({ rack, bay: parseInt(bay), level: parseInt(level) })).data if (palletLoc) {