From f4709b784fc12e4b70e419d62521d45379f1efcd Mon Sep 17 00:00:00 2001 From: erio Date: Tue, 3 Mar 2026 03:55:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=89=20src=5Fhost=20=E6=97=B6?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E8=AE=A2=E5=8D=95=E9=A1=B5=E3=80=8C=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=85=85=E5=80=BC=E3=80=8D=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 从 iframe 嵌入(带 src_host)时不显示返回充值按钮,避免用户跳出。 Co-Authored-By: Claude Opus 4.6 --- src/app/pay/orders/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/pay/orders/page.tsx b/src/app/pay/orders/page.tsx index 96a8695..4dfe829 100644 --- a/src/app/pay/orders/page.tsx +++ b/src/app/pay/orders/page.tsx @@ -24,6 +24,7 @@ function OrdersContent() { const token = (searchParams.get('token') || '').trim(); const theme = searchParams.get('theme') === 'dark' ? 'dark' : 'light'; const uiMode = searchParams.get('ui_mode') || 'standalone'; + const srcHost = searchParams.get('src_host') || ''; const isDark = theme === 'dark'; const [isIframeContext, setIsIframeContext] = useState(true); @@ -178,7 +179,7 @@ function OrdersContent() { actions={ <> - 返回充值 + {!srcHost && 返回充值} } >