This commit is contained in:
yuanke 2016-08-12 17:46:44 +08:00
parent 1a835a25db
commit e21f7a34bd
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,8 @@ module Mobile
# userinfo = Wechat.api.web_userinfo(access_token,openid)
Rails.logger.info userinfo
Rails.logger.info userinfo["nickname"]
Rails.logger.info userinfo[:nickname]
name = userinfo["nickname"]
else
name = openid[0..3]+"***"+openid.last