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

增加小程序用jscode获取用户信息的接口 #550

Merged
merged 8 commits into from
Dec 20, 2016

Conversation

soone
Copy link
Contributor

@soone soone commented Dec 20, 2016

由于最近做小程序,有个通过code换取session_key的接口,详见https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-login.html?t=20161122

在User里面增加了MiniAppUser的类,具体使用方法为
$app = new \EasyWeChat\Foundation\Application($config);
$app->miniappuser->get($jscode); // $jscode即为小程序获取的当前用户的code

*/
public function register(Container $pimple)
{
$pimple['miniappuser'] = function ($pimple) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mini_app_user

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@overtrue overtrue merged commit 602a225 into w7corp:master Dec 20, 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

Successfully merging this pull request may close these issues.

2 participants