微信获取用户信息修改

This commit is contained in:
yuanke 2016-08-12 10:59:12 +08:00
parent 5c42cdb39c
commit e4194288ce
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ module Mobile
access_token = session[:access_token]
if access_token
userinfo = wechat.web_userinfo(access_token,openid)
userinfo = Wechat.api.web_userinfo(access_token,openid)
name = userinfo[:nickname]
else
name = openid[0..3]+"***"+openid.last