From c346c6b1ba67191107f10a06e590bcffd1451a03 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Thu, 24 Sep 2026 05:42:16 +0800 Subject: [PATCH] test: preserve PDA producer identity for fixture handoff --- scripts/admin-test-env-modules/phase4-overseas-pda.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/admin-test-env-modules/phase4-overseas-pda.mjs b/scripts/admin-test-env-modules/phase4-overseas-pda.mjs index f944afd0c..813ec4d63 100644 --- a/scripts/admin-test-env-modules/phase4-overseas-pda.mjs +++ b/scripts/admin-test-env-modules/phase4-overseas-pda.mjs @@ -862,9 +862,12 @@ async function runReceiving(context, token, secondaryToken, merchantToken, prefe const warehouseFacts = await verifyWarehouseQueries(context, token, inbound.inboundCode, pallets.get(inbound.inboundCode), inbound.destinationType) if (warehouseFacts && context.context?.phase4OverseasPdaOperations) { + const producerFixture = (context.createdResources?.phase4InboundProducerFixtures?.containers || []) + .find((item) => id(item?.inboundCode) === id(inbound.inboundCode)) const fixture = { containerNo, order, destinationType: inbound.destinationType, fbaWarehouseCode: inbound.destinationType === 'FBA' ? inbound.fbaWarehouseCode : null, + resourceKey: producerFixture?.resourceKey || null, auxiliaryPallets: generatedContainerPallets.filter((candidate) => id(candidate?.palletId) !== id(warehouseFacts.pallet?.palletId)), ...warehouseFacts,