diff --git a/nuxt.config.ts b/nuxt.config.ts index f0eefe7..a8c5b78 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -133,7 +133,7 @@ export default defineNuxtConfig({ github: !!process.env.GITHUB_CLIENT_ID, casdoor: !!process.env.CASDOOR_CLIENT_ID, google: !!process.env.GOOGLE_CLIENT_ID, - aggregate: !!process.env.AGGREGATE_OAUTH_APP_ID + aggregate: false }, siteTitle: process.env.NUXT_PUBLIC_SITE_TITLE || '校园广播站点歌系统', siteLogo: process.env.NUXT_PUBLIC_SITE_LOGO || '', diff --git a/server/utils/oauth-strategies.ts b/server/utils/oauth-strategies.ts index c265b66..b7133ca 100644 --- a/server/utils/oauth-strategies.ts +++ b/server/utils/oauth-strategies.ts @@ -300,13 +300,15 @@ async function loadAggregateSettings() { const endpoint = ((base?.aggregateOAuthEndpoint as string) || envEndpoint || '') as string const result: any = { - aggregateOAuthEnabled: enabled && !!(appId && appKey && endpoint), + aggregateOAuthEnabled: false, aggregateOAuthAppId: appId, aggregateOAuthAppKey: appKey, aggregateOAuthLoginType: loginType, aggregateOAuthEndpoint: endpoint, _dbHasConfig: dbHasConfig, - _hasEnvConfig: hasEnvConfig + _hasEnvConfig: hasEnvConfig, + _hardDisabledReason: + '[hard-disabled] nuxt.config.ts public.oauth.aggregate 已硬编码 false,暂时关闭微信聚合登录;恢复时同时改 nuxt.config.ts 改回 !!process.env.AGGREGATE_OAUTH_APP_ID 以及删除此处的强制 false' } console.log(