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

MpWechat中getOauth2AuthorizeUrl() $redirectUrl问题 #39

Open
chenkby opened this issue Aug 17, 2016 · 1 comment
Open

MpWechat中getOauth2AuthorizeUrl() $redirectUrl问题 #39

chenkby opened this issue Aug 17, 2016 · 1 comment

Comments

@chenkby
Copy link

chenkby commented Aug 17, 2016

使用MpWechat的getOauth2AuthorizeUrl()获取code,这里的$redirectUrl不应该在调用的时候进行urlencode,因为此方法已经使用了http_build_query进行了urlencode。否则会导致redirect_uri参数错误。

此方法中的$redirect_url参数描述为“授权后重定向的回调链接地址,请使用urlencode对链接进行处理",会让人误以为传值应该是urlencode后的

@Hao1280642154
Copy link

请问下,在使用过程中,yii::$app->wechat 使用的是 wechat.php 我该如何使用 MpWechat.php 里面的方法呢?

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