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

[3.0] 无法获取用户分组信息 #285

Closed
chao opened this issue Feb 17, 2016 · 3 comments
Closed

[3.0] 无法获取用户分组信息 #285

chao opened this issue Feb 17, 2016 · 3 comments

Comments

@chao
Copy link

chao commented Feb 17, 2016

按照文档里的

$userGroupId = $userService->group($openId);

去获取某个指定OpenID用户的分组信息失败。

按照微信的官方文档获取用户分组信息应该是用POST方法,我看了一下EasyWeChat\User\User里的getGroup方法用的是GET。

修改为json后通过POST可正确获得结果。
return $this->parseJSON('json', [self::API_GROUP, $params]);

@overtrue
Copy link
Collaborator

@chao 为啥不直接PR嘛 :octocat:

overtrue added a commit that referenced this issue Feb 17, 2016
@chao
Copy link
Author

chao commented Feb 17, 2016

懒了,下次直接PR。

@overtrue
Copy link
Collaborator

@chao 😆

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