|
|
@ -48,8 +48,8 @@ module OmniAuth
|
|
|
|
|
|
|
|
|
|
|
|
def user_info
|
|
|
|
def user_info
|
|
|
|
access_token.options[:mode] = :query
|
|
|
|
access_token.options[:mode] = :query
|
|
|
|
params = { oauth_consumer_key: options.client_id, openid: uid, format: 'json', parse: :json }
|
|
|
|
param = { oauth_consumer_key: options[:client_id], openid: uid, format: 'json' }
|
|
|
|
@user_info ||= access_token.get('/user/get_user_info', params: params).parsed
|
|
|
|
@user_info ||= access_token.get('/user/get_user_info', params: param, parse: :json).parsed
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|