Browse Source

fixed ci4s oauth2接入 log

pull/347/head
xxq250 1 year ago
parent
commit
36409600ea
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      app/controllers/oauth/ci4s_controller.rb

+ 4
- 4
app/controllers/oauth/ci4s_controller.rb View File

@@ -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

Loading…
Cancel
Save