This commit is contained in:
yuanke 2016-08-12 14:29:19 +08:00
parent 1f8ea39765
commit 9fcb43b949
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,9 @@ module Mobile
access_token = session[:access_token]
logger.info "session!!!!!!!!!"
logger.info session
if access_token
userinfo = Wechat.api.web_userinfo(access_token,openid)
name = userinfo[:nickname]