From 04da22ed64455157dfc26aa9e16b5f25a0665043 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 23 Oct 2024 11:25:11 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20ci4s=20oauth2=E6=8E=A5=E5=85=A5=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/oauth/ci4s_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/oauth/ci4s_controller.rb b/app/controllers/oauth/ci4s_controller.rb index ec82e2de7..ba76d370b 100644 --- a/app/controllers/oauth/ci4s_controller.rb +++ b/app/controllers/oauth/ci4s_controller.rb @@ -13,7 +13,8 @@ class Oauth::Ci4sController < Oauth::BaseController tip_exception("code不能为空") if code.blank? new_user = false - token = Ci4s::Service.access_token(code) + result = Ci4s::Service.access_token(code) + Rails.logger.info("[OAuth2] result -> #{result}") # result = token[:account_info] result = Ci4s::Service.user_info(result[:access_token])