|
|
|
@ -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}"
|
|
|
|
|
|
|
|
|
|
# 同步用户
|
|
|
|
|