fix: 修正飞书登录回调重定向方法

使用 Webman 全局 redirect() 函数,而不是 Response::redirect()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-02-26 11:02:41 +08:00
parent a1b395b147
commit cd1499cd0f
+2 -2
View File
@@ -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());
}