From 3a0d2757464efcc06591ace839b8a804e32a297c 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 14:10:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E4=B9=B0=20E2E=20=E5=AE=9A=E4=BB=B7?= =?UTF-8?q?=E8=BE=B9=E7=95=8C=E5=BB=BA=E6=B8=B8=E5=A4=B1=E8=B4=A5=E6=97=B6?= =?UTF-8?q?=E6=8F=90=E5=89=8D=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - boundsGameId 为空时先记录失败再 process.exit(1),避免后续请求 /undefined 级联掩盖根因 --- scripts/check-game-distribution-purchase-e2e.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/check-game-distribution-purchase-e2e.mjs b/scripts/check-game-distribution-purchase-e2e.mjs index bb4fff4f6..ccf6a9e47 100644 --- a/scripts/check-game-distribution-purchase-e2e.mjs +++ b/scripts/check-game-distribution-purchase-e2e.mjs @@ -1474,6 +1474,9 @@ async function main() { boundsGameCreated.status === 200 && Boolean(boundsGameId), `status=${boundsGameCreated.status} gameId=${String(boundsGameId)}`, ); + // 建游失败时下面的 /my-games/undefined 与 /games/undefined/versions 会级联报错, + // 掩盖真正的根因;这里与其它脚本一致,先记录失败再退出。 + if (!boundsGameId) process.exit(1); // 单游戏作者视图把自有条目挂在 `data.game` 下(`versions` 在条目里,不在顶层)。 const countBoundsVersions = async () => { const ownerEntry = await api(