From 1094e4f862c7852c3159e053ccaf301e73b75a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Tue, 6 Oct 2026 21:05:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=AA=E5=9B=BE=E4=B8=8A=E9=99=90=E6=96=87?= =?UTF-8?q?=E6=A1=88=E6=94=B9=E7=94=A8=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit useGameDistributionPublishForm.ts:超限报错里的 6 改用 MAX_AGC_GAME_SCREENSHOTS,避免与常量脱节。 --- .../game-distribution/useGameDistributionPublishForm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ai-game-creator-shell/src/components/game-distribution/useGameDistributionPublishForm.ts b/apps/ai-game-creator-shell/src/components/game-distribution/useGameDistributionPublishForm.ts index 3723f2953..44e32bfca 100644 --- a/apps/ai-game-creator-shell/src/components/game-distribution/useGameDistributionPublishForm.ts +++ b/apps/ai-game-creator-shell/src/components/game-distribution/useGameDistributionPublishForm.ts @@ -662,8 +662,8 @@ export function useGameDistributionPublishForm({ if (files.length > remaining) { reportError( remaining > 0 - ? `游戏截图最多 6 张,还可以再选 ${remaining} 张` - : '游戏截图最多 6 张', + ? `游戏截图最多 ${MAX_AGC_GAME_SCREENSHOTS} 张,还可以再选 ${remaining} 张` + : `游戏截图最多 ${MAX_AGC_GAME_SCREENSHOTS} 张`, ); if (screenshotInputRef.current) screenshotInputRef.current.value = ''; return;