From 8e59e11f0d1c109774ac67a70d44b38c0b8ea476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 7 Oct 2026 11:11:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=90=AF=E6=A0=A1=E9=AA=8C=20E2E?= =?UTF-8?q?=EF=BC=9A=E5=88=9B=E5=BB=BA=E6=B8=B8=E6=88=8F=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E6=97=B6=E5=85=88=E9=80=80=E5=87=BA=E5=86=8D=E8=A7=A3=E5=BC=95?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 check('创建游戏成功') 后补 if (!gameId) process.exit(1) - check 只记失败不中断,created.data 为空时继续取 coverObjectKey 会抛未捕获 TypeError 打崩脚本 --- scripts/check-game-distribution-validation-restart-e2e.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/check-game-distribution-validation-restart-e2e.mjs b/scripts/check-game-distribution-validation-restart-e2e.mjs index 598af8f2e..b5990d727 100644 --- a/scripts/check-game-distribution-validation-restart-e2e.mjs +++ b/scripts/check-game-distribution-validation-restart-e2e.mjs @@ -237,6 +237,9 @@ async function runPrepare() { }); const gameId = created.data?.id; check('创建游戏成功', created.status === 200 && Boolean(gameId)); + // `check` 只记失败不中断:创建失败时 created.data 为空,继续解引用会抛未捕获 TypeError + // 把脚本直接打崩,拿不到后面成组的 check 结论。 + if (!gameId) process.exit(1); // 建版沿用创建时服务端派生的封面 objectKey(必须属于该游戏当前媒体)。 const resolvedMetadata = { ...metadata,