diff --git a/projects/fastgpt/app/layout.tsx b/projects/fastgpt/app/layout.tsx index 56cd758..eb6b707 100644 --- a/projects/fastgpt/app/layout.tsx +++ b/projects/fastgpt/app/layout.tsx @@ -11,6 +11,7 @@ import '@/styles/plyr.css'; import { Analytics } from '@vercel/analytics/react'; import { Viewport } from 'next'; import { Inter as FontSans } from 'next/font/google'; +import Script from 'next/script'; const fontSans = FontSans({ subsets: ['latin'], @@ -44,12 +45,36 @@ export default async function RootLayout({ children: React.ReactNode; params: { lang: string[] | undefined }; }) { + const isChineseDomain = process.env.NEXT_PUBLIC_USER_URL?.includes('.cn') || process.env.NEXT_PUBLIC_USER_URL?.includes('.run'); + return ( -
+ + {!isChineseDomain && ( + + )} + + + {!isChineseDomain && ( + + )}