From fd364be4b6d4cf38b2159c6e66a4e8cd30295948 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 26 Feb 2026 11:04:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=AB=E7=A0=81=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E5=90=8E=E8=BF=94=E5=9B=9E=E7=AE=80=E5=8D=95?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E4=B8=8D=E9=87=8D=E5=AE=9A=E5=90=91?= 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 | 47 ++++++++++++++++++++++- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/backend/app/controller/AuthController.php b/backend/app/controller/AuthController.php index 9007e4a..0a70e1d 100644 --- a/backend/app/controller/AuthController.php +++ b/backend/app/controller/AuthController.php @@ -261,8 +261,51 @@ class AuthController extends BaseController $session->user_id = $user->id; $session->save(); - // 重定向到前端页面(Webman 使用全局 redirect 函数) - return redirect('https://xsm.dev.hnxinyouhe.com/login'); + // 返回简单页面,让用户知道可以关闭了 + return new \Webman\Http\Response(200, [], ' + + + + + 登录成功 + + + +
+
✅
+

登录成功

+

您可以关闭此页面返回电脑端继续操作

+
+ +'); } catch (\Exception $e) { return $this->error($e->getMessage()); }