From 40234a1d90e08e88ab5e46d54a5bef35d572ca7d Mon Sep 17 00:00:00 2001 From: root Date: Fri, 27 Feb 2026 22:14:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BD=BF=E7=94=A8=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E4=B8=AD=E7=9A=84=20mobile=5Fcallback=5Furl=20?= =?UTF-8?q?=E4=BD=9C=E4=B8=BA=E5=9B=9E=E8=B0=83=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- backend/app/controller/AuthController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/app/controller/AuthController.php b/backend/app/controller/AuthController.php index ddd951e..7e4b89d 100644 --- a/backend/app/controller/AuthController.php +++ b/backend/app/controller/AuthController.php @@ -286,9 +286,9 @@ class AuthController extends BaseController 'expires_at' => date('Y-m-d H:i:s', time() + 300), // 5分钟过期 ]); - // 构建扫码登录 URL - $baseUrl = config('feishu_notification.base_url') ?? request()->scheme() . '://' . request()->host(); - $redirectUri = urlencode($baseUrl . '/login/callback'); + // 构建扫码登录 URL(使用数据库中配置的回调地址) + $callbackUrl = $feishuApp->mobile_callback_url ?? request()->scheme() . '://' . request()->host() . '/login/callback'; + $redirectUri = urlencode($callbackUrl); $authUrl = "https://passport.feishu.cn/suite/passport/oauth/authorize?client_id={$feishuApp->app_id}&redirect_uri={$redirectUri}&response_type=code&state={$loginSession->id}"; error_log("✅ 生成二维码会话: session_id={$loginSession->id}");