Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

网页授权 跳转 #202

Closed
cutexin opened this issue Jan 4, 2016 · 1 comment
Closed

网页授权 跳转 #202

cutexin opened this issue Jan 4, 2016 · 1 comment

Comments

@cutexin
Copy link

cutexin commented Jan 4, 2016

// 未登录
if (empty($_SESSION['wechat_user'])) {
return $oauth->with(['target_url' => 'user/profile'])->redirect();
// 这里不一定是rturn,如果你的框架action不是返回内容的话你就得使用
// $oauth->with(['target_url' => 'user/profile'])->redirect()->send();
}

使用官网文档测试,获取授权后不能跳转到target_url, 在授权页面打印GET变量 没有target_url

@overtrue
Copy link
Collaborator

overtrue commented Jan 4, 2016

这个问题我修复一下,谢谢!

overtrue added a commit to overtrue/socialite that referenced this issue Jan 4, 2016
overtrue added a commit to overtrue/socialite that referenced this issue Jan 4, 2016
overtrue added a commit to overtrue/socialite that referenced this issue Jan 4, 2016
overtrue added a commit to EasyWeChat/docs that referenced this issue Jan 4, 2016
@overtrue overtrue closed this as completed Jan 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants