This commit is contained in:
yuanke 2016-08-12 15:06:28 +08:00
parent e732a47f2f
commit ae437912d8
1 changed files with 2 additions and 1 deletions

View File

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