From 5bdabdc7f7391fc9b595a0f68e6a4737cc35079f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Tue, 22 Sep 2026 13:25:38 +0800 Subject: [PATCH] =?UTF-8?q?3D=20=E6=8F=90=E4=BA=A4=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=9C=A8=E9=9D=9E=203D=20=E6=A8=A1=E5=BC=8F=E6=94=B9=E7=94=A8?= =?UTF-8?q?=E4=B8=93=E9=97=A8=E7=9A=84=E5=8E=9F=E5=9B=A0=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - src/components/image-editor/model3d-generation/Model3dGenerationSubmission.ts:buildModel3dSubmissionPlan 的 mode 兜底改用 MODEL3D_MODE_UNSUPPORTED_REASON,不再把非 3D 面板说成「3D 模型定价尚未配置」 验证:npx vitest run src/components/image-editor/model3d-generation --- .../model3d-generation/Model3dGenerationSubmission.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/image-editor/model3d-generation/Model3dGenerationSubmission.ts b/src/components/image-editor/model3d-generation/Model3dGenerationSubmission.ts index ca77f7e0e..5a5e99cf3 100644 --- a/src/components/image-editor/model3d-generation/Model3dGenerationSubmission.ts +++ b/src/components/image-editor/model3d-generation/Model3dGenerationSubmission.ts @@ -11,7 +11,7 @@ import { DEFAULT_MODEL3D_MODEL_VERSION, isModel3dGenerationMode, mintModel3dAttemptNonce, - MODEL3D_PRICING_UNAVAILABLE_REASON, + MODEL3D_MODE_UNSUPPORTED_REASON, resolveModel3dEndpoint, resolveModel3dGenerationParams, resolveModel3dGenerationQuote, @@ -75,7 +75,7 @@ export function buildModel3dSubmissionPlan({ pricing?: Model3dPricingConfig | null; }): { ok: true; plan: Model3dSubmissionPlan } | { ok: false; message: string } { if (!isModel3dGenerationMode(dialog.mode)) { - return { ok: false, message: MODEL3D_PRICING_UNAVAILABLE_REASON }; + return { ok: false, message: MODEL3D_MODE_UNSUPPORTED_REASON }; } const trimmedProjectId = projectId?.trim(); if (!trimmedProjectId) {