diff --git a/backend/app/controller/AuthController.php b/backend/app/controller/AuthController.php index 620781b..fc7654d 100644 --- a/backend/app/controller/AuthController.php +++ b/backend/app/controller/AuthController.php @@ -261,24 +261,9 @@ class AuthController extends BaseController $session->user_id = $user->id; $session->save(); - // 返回空页面,自动关闭(飞书APP内会自动返回) - return new \Webman\Http\Response(200, ['Content-Type' => 'text/html; charset=utf-8'], ' - - - - - - - - -'); + // 返回极简空白页面(飞书APP内扫码通常不会真正访问此URL) + // 飞书会在APP内直接处理回调,返回到之前的界面 + return new \Webman\Http\Response(200, ['Content-Type' => 'text/html; charset=utf-8'], ''); } catch (\Exception $e) { return $this->error($e->getMessage()); }