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()); }