From 58d4c7efbfdd331d3813afc0532e24733d1ef280 Mon Sep 17 00:00:00 2001 From: erio Date: Sun, 15 Mar 2026 17:24:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=BB=9A=E5=8A=A8=E6=9D=A1=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E9=80=82=E9=85=8D=20+=20=E5=A5=97=E9=A4=90=20API=20?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A0=A1=E9=AA=8C=E8=A1=A5=E5=85=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 滚动条默认浅色,data-theme="dark" 下切换深色 - admin layout / PayPageLayout 根 div 加 data-theme 属性 - 套餐 POST/PUT: name 类型、空值、长度(100)校验 + trim - 套餐 PUT: 补全 sort_order 非负整数校验 --- src/app/admin/layout.tsx | 2 +- .../admin/subscription-plans/[id]/route.ts | 11 ++++++- src/app/api/admin/subscription-plans/route.ts | 12 +++++-- src/app/globals.css | 32 ++++++++++++++++--- src/components/PayPageLayout.tsx | 1 + 5 files changed, 48 insertions(+), 10 deletions(-) diff --git a/src/app/admin/layout.tsx b/src/app/admin/layout.tsx index 7267dbd..d1a75fa 100644 --- a/src/app/admin/layout.tsx +++ b/src/app/admin/layout.tsx @@ -35,7 +35,7 @@ function AdminLayoutInner({ children }: { children: React.ReactNode }) { }; return ( -
+