diff --git a/lib/wechat/lib/wechat/api.rb b/lib/wechat/lib/wechat/api.rb index e42b3f782..73d68e72d 100644 --- a/lib/wechat/lib/wechat/api.rb +++ b/lib/wechat/lib/wechat/api.rb @@ -125,9 +125,13 @@ module Wechat def web_userinfo(access_token,openid) params = { access_token: access_token, - openid: openid + openid: openid, + lang: "zh_CN" } - get 'userinfo', params: params, base: OAUTH2_USERINFO + + get 'https://api.weixin.qq.com/sns/userinfo',params: params + + # get 'userinfo', params: params, base: OAUTH2_USERINFO end end end