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 #264

Closed
motionlife opened this issue Jan 22, 2016 · 3 comments
Closed

40029不合法的oauth_code #264

motionlife opened this issue Jan 22, 2016 · 3 comments

Comments

@motionlife
Copy link

总是出这个 请问大家有没遇到过 怎么解决的 我用的是Laravel 5.2

@overtrue
Copy link
Collaborator

@motionlife 要不你用3.0吧,我大概知道你的问题应该是把业务逻辑与授权写在一个页面的原因。

@motionlife
Copy link
Author

@overtrue 谢谢解答。我用的是3.0刚刚发现了问题:我在middleware中写了
return $oauth->redirect();
这可能最终导致了对微信服务器做了2次请求,我把改成
$oauth->redirect()->send();
问题解决了。希望大家遇到类似的也可以检查一下是不是这个问题。

@overtrue
Copy link
Collaborator

Laravel?

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