From 36409600eaec6a287ccae5d3894595751a909cd1 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 23 Oct 2024 11:23:44 +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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/oauth/ci4s_controller.rb b/app/controllers/oauth/ci4s_controller.rb index a19fd987d..ec82e2de7 100644 --- a/app/controllers/oauth/ci4s_controller.rb +++ b/app/controllers/oauth/ci4s_controller.rb @@ -8,7 +8,7 @@ class Oauth::Ci4sController < Oauth::BaseController # 需要educoder那边设置回调地址 def create - begin + # begin code = params['code'].to_s.strip tip_exception("code不能为空") if code.blank? @@ -45,8 +45,8 @@ class Oauth::Ci4sController < Oauth::BaseController Rails.logger.info("[OAuth2] session[:unionid] -> #{session[:unionid]}") redirect_to root_path(new_user: new_user) - rescue Exception => ex - render_error(ex.message) - end + # rescue Exception => ex + # render_error(ex.message) + # end end end