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
+2 -2
View File
@@ -360,10 +360,10 @@ async def get_site_info(db: AsyncSession = Depends(get_db)):
return f"{base_url}{path}" return f"{base_url}{path}"
return { return {
"site_name": info.get("site_name", "VideoGen.AI"), "site_name": info.get("site_name", "智创"),
"site_logo": to_full_url(info.get("site_logo")), "site_logo": to_full_url(info.get("site_logo")),
"user_agreement_privacy_url": to_full_url(info.get("user_agreement_privacy_url")), "user_agreement_privacy_url": to_full_url(info.get("user_agreement_privacy_url")),
"site_copyright": info.get("site_copyright", "© 2024 民众智创 版权所有"), "site_copyright": info.get("site_copyright", "© 2026 智创 版权所有"),
"operation_manual": info.get("operation_manual", ""), "operation_manual": info.get("operation_manual", ""),
"login_bg_video": to_full_url(info.get("login_bg_video")) if info.get("login_bg_video") else "", "login_bg_video": to_full_url(info.get("login_bg_video")) if info.get("login_bg_video") else "",
"optimize_hold_credits": int(info.get("optimize_hold_credits") or 5), "optimize_hold_credits": int(info.get("optimize_hold_credits") or 5),
+1 -1
View File
@@ -302,7 +302,7 @@ export async function verifyCaptcha(captchaId: string, x: number): Promise<strin
} }
// ── Site Info ───────────────────────────────────────────── // ── Site Info ─────────────────────────────────────────────
export async function getSiteInfo(): Promise<{ siteName: string; siteLogo: string; userAgreementPrivacyUrl: string; siteCopyright: string; operationManual: string; loginBgVideo: string; optimizeHoldCredits?: number }> { 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); return api.get('/auth/site-info', false);
} }
// ── Video Engines ───────────────────────────────────────── // ── Video Engines ─────────────────────────────────────────
@@ -385,7 +385,7 @@ const AppLayout: React.FC = () => {
useEffect(() => { useEffect(() => {
getSiteInfo().then(info => { getSiteInfo().then(info => {
const name = info.siteName || '民众智创'; const name = info.siteName || '智创';
const logo = info.siteLogo || ''; const logo = info.siteLogo || '';
if (name !== siteName) { if (name !== siteName) {
+2 -2
View File
@@ -36,12 +36,12 @@ const LoginPage: React.FC = () => {
if (cached) { if (cached) {
const info = JSON.parse(cached); const info = JSON.parse(cached);
return { return {
siteName: info.siteName || 'VideoGen.AI', siteName: info.siteName || '智创',
siteLogo: info.siteLogo || '', siteLogo: info.siteLogo || '',
}; };
} }
} catch { } } catch { }
return { siteName: 'VideoGen.AI', siteLogo: '' }; return { siteName: '智创', siteLogo: '' };
}; };
const initialInfo = getInitialSiteInfo(); const initialInfo = getInitialSiteInfo();