From 58e07ba2822b6bd9c0a3e53db60fb9ad966d951b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 3 Oct 2026 14:59:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=90=8E=E5=8F=B0=E4=BC=9A=E5=91=98):=20?= =?UTF-8?q?=E6=AF=8F=E6=9C=9F=E6=B3=A5=E7=82=B9=E6=94=B9=E4=B8=BA=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E5=89=8D=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AdminMembershipPlanPage.tsx:非 normal 档位要求每期泥点大于 0,不再等后端返回笼统目录错误 Co-authored-by: Junie --- apps/admin-web/src/pages/AdminMembershipPlanPage.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/admin-web/src/pages/AdminMembershipPlanPage.tsx b/apps/admin-web/src/pages/AdminMembershipPlanPage.tsx index f32e02c72..0f00bdf3d 100644 --- a/apps/admin-web/src/pages/AdminMembershipPlanPage.tsx +++ b/apps/admin-web/src/pages/AdminMembershipPlanPage.tsx @@ -110,11 +110,16 @@ export function AdminMembershipPlanPage({ const normalizedYearPriceCents = parsePositiveInteger(yearPriceCents); const normalizedConcurrentJobLimit = parsePositiveInteger(concurrentJobLimit); + const normalizedPeriodPoints = parsePositiveInteger(periodPoints); if (plan !== 'normal') { if (!normalizedMonthPriceCents || !normalizedYearPriceCents) { setErrorMessage('月价与年价必须是大于 0 的整数分'); return; } + if (!normalizedPeriodPoints) { + setErrorMessage('每期泥点必须是大于 0 的整数'); + return; + } if (!normalizedConcurrentJobLimit) { setErrorMessage( `并发上限必须是大于 0 的整数;${UNLIMITED_CONCURRENT_JOB_LIMIT} 表示不设上限`, @@ -138,7 +143,7 @@ export function AdminMembershipPlanPage({ title: title.trim(), monthPriceCents: normalizedMonthPriceCents, yearPriceCents: normalizedYearPriceCents, - periodPoints: parsePositiveInteger(periodPoints), + periodPoints: normalizedPeriodPoints, modelAccess, concurrentJobLimit: normalizedConcurrentJobLimit, enabled,