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

网页授权一刷新页面就出现40029 不合法的oauth_code #8

Closed
kamwing opened this issue Apr 26, 2015 · 5 comments
Closed

网页授权一刷新页面就出现40029 不合法的oauth_code #8

kamwing opened this issue Apr 26, 2015 · 5 comments

Comments

@kamwing
Copy link

kamwing commented Apr 26, 2015

你好 我根据wiki里面的示例 第一次授权可以获得用户信息 但是只要刷新就会出现40029,能帮我分析一下问题吗?

if ($auth->authorized() || Session::get('logged_open_id')) {
    $user = $auth->user();// 获取已经登录后用户信息
    Session::set('logged_open_id', $user['open_id']);

    //code 显示授权后的页面,或者跳转到其它授权才能访问的页面
    //...
} else {
    $to = "http://微信授权完成后跳回你的地址,就是当前代码所在的 URL";
    $auth->redirect($to);
}
@sinoon
Copy link

sinoon commented Apr 26, 2015

你好.
~~开发者中心-->网页授权获取用户基本信息-->授权回调页面域名 ~~
这里你有设置吗?

脑残了,既然可以获取一次用户信息,说明上面已经设置过了.

@kamwing
Copy link
Author

kamwing commented Apr 26, 2015

@sinoon 有设置呢,很奇怪为什么会不能刷新

@kamwing
Copy link
Author

kamwing commented Apr 26, 2015

@sinoon 请问你有测试下这个问题嘛? 不知道是否会出现和我同样的问题.

@overtrue
Copy link
Collaborator

正在处理,请不要着急,今天会解决,

2015-04-26 16:48 GMT+08:00 Ngai Kam Wing [email protected]:

@sinoon https://github.com/sinoon 请问你有测试下这个问题嘛? 不知道是否会出现和我同样的问题.


Reply to this email directly or view it on GitHub
#8 (comment).

overtrue added a commit that referenced this issue Apr 26, 2015
@overtrue
Copy link
Collaborator

@kamwing @sinoon 请更新后再试一下

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

3 participants