fix: 修正飞书登录回调重定向方法
使用 Webman 全局 redirect() 函数,而不是 Response::redirect() Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user