diff --git a/backend/app/controller/AuthController.php b/backend/app/controller/AuthController.php index 0041eb8..9007e4a 100644 --- a/backend/app/controller/AuthController.php +++ b/backend/app/controller/AuthController.php @@ -261,8 +261,8 @@ class AuthController extends BaseController $session->user_id = $user->id; $session->save(); - // 重定向到前端页面 - return \Webman\Http\Response::redirect('https://xsm.dev.hnxinyouhe.com/login'); + // 重定向到前端页面(Webman 使用全局 redirect 函数) + return redirect('https://xsm.dev.hnxinyouhe.com/login'); } catch (\Exception $e) { return $this->error($e->getMessage()); }