获取用户信息

dev_SaaS
guange 6 years ago
parent dc578ec876
commit ddba3d844d

@ -115,7 +115,7 @@ class EcloudController < ApplicationController
#获取此用户信息
# res = get("https://gitee.com/api/v5/user?access_token=#{body["access_token"]}")
res = get("#{SERVER_URL}/user/info?access_token={ACCESS_TOKEN}&userid={USERID}")
res = get("#{SERVER_URL}/user/info?access_token=#{body['access_token']}&userid=#{body['uid']}")
logger.info "oauth2 get user info: #{res}"
# 同步用户

Loading…
Cancel
Save