This commit is contained in:
2026-07-24 17:27:39 +08:00
parent acac39c73c
commit da08fc43cb
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -302,7 +302,7 @@ export async function verifyCaptcha(captchaId: string, x: number): Promise<strin
}
// ── Site Info ─────────────────────────────────────────────
export async function getSiteInfo(): Promise<{ siteName: string; siteLogo: string; userAgreementPrivacyUrl: string; siteCopyright: string; operationManual: string; loginBgVideo: string; optimizeHoldCredits?: number }> {
if (USE_MOCK) return { siteName: 'VideoGen.AI', siteLogo: '', userAgreementPrivacyUrl: '', siteCopyright: '© 2024 民众智创 版权所有', operationManual: '', loginBgVideo: '' };
if (USE_MOCK) return { siteName: '智创', siteLogo: '', userAgreementPrivacyUrl: '', siteCopyright: '© 2026 智创 版权所有', operationManual: '', loginBgVideo: '' };
return api.get('/auth/site-info', false);
}
// ── Video Engines ─────────────────────────────────────────
@@ -385,7 +385,7 @@ const AppLayout: React.FC = () => {
useEffect(() => {
getSiteInfo().then(info => {
const name = info.siteName || '民众智创';
const name = info.siteName || '智创';
const logo = info.siteLogo || '';
if (name !== siteName) {
+2 -2
View File
@@ -36,12 +36,12 @@ const LoginPage: React.FC = () => {
if (cached) {
const info = JSON.parse(cached);
return {
siteName: info.siteName || 'VideoGen.AI',
siteName: info.siteName || '智创',
siteLogo: info.siteLogo || '',
};
}
} catch { }
return { siteName: 'VideoGen.AI', siteLogo: '' };
return { siteName: '智创', siteLogo: '' };
};
const initialInfo = getInitialSiteInfo();