微信获取用户信息修改
This commit is contained in:
parent
5c42cdb39c
commit
e4194288ce
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue