This commit is contained in:
yuanke 2016-08-12 15:35:12 +08:00
parent efc1c106a4
commit 0369716df7
1 changed files with 6 additions and 2 deletions

View File

@ -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