Merge branch 'main' of https://gitee.com/wg123/video-gen
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user