diff --git a/app/controllers/ecloud_controller.rb b/app/controllers/ecloud_controller.rb index 688e7a5b..31664376 100644 --- a/app/controllers/ecloud_controller.rb +++ b/app/controllers/ecloud_controller.rb @@ -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}" # 同步用户