diff --git a/VERSION b/VERSION index 03b7bd6..34728b5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.11.6 +2.11.7 diff --git a/src/auth/gemini-oauth.js b/src/auth/gemini-oauth.js index e7896bb..4842efb 100644 --- a/src/auth/gemini-oauth.js +++ b/src/auth/gemini-oauth.js @@ -42,10 +42,42 @@ const activeServers = new Map(); * 生成 HTML 响应页面 * @param {boolean} isSuccess - 是否成功 * @param {string} message - 显示消息 + * @param {string|null} provider - 提供商标识 * @returns {string} HTML 内容 */ -function generateResponsePage(isSuccess, message) { +function generateResponsePage(isSuccess, message, provider = null) { const title = isSuccess ? '授权成功!' : '授权失败'; + const countdownHtml = isSuccess ? ` +
此窗口将在 10 秒后自动关闭。
+ ` : ''; return ` @@ -53,11 +85,34 @@ function generateResponsePage(isSuccess, message) {${message}
+ ${countdownHtml}