This commit is contained in:
parent
e732a47f2f
commit
ae437912d8
|
@ -33,7 +33,8 @@ module Mobile
|
|||
|
||||
if access_token
|
||||
userinfo = Wechat.api.web_userinfo(access_token,openid)
|
||||
name = userinfo[:nickname]
|
||||
Rails.logger.info userinfo
|
||||
name = userinfo["nickname"]
|
||||
else
|
||||
name = openid[0..3]+"***"+openid.last
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue