fixed ci4s oauth2接入 log
This commit is contained in:
parent
c93ae8ebae
commit
36409600ea
|
@ -8,7 +8,7 @@ class Oauth::Ci4sController < Oauth::BaseController
|
||||||
|
|
||||||
# 需要educoder那边设置回调地址
|
# 需要educoder那边设置回调地址
|
||||||
def create
|
def create
|
||||||
begin
|
# begin
|
||||||
code = params['code'].to_s.strip
|
code = params['code'].to_s.strip
|
||||||
tip_exception("code不能为空") if code.blank?
|
tip_exception("code不能为空") if code.blank?
|
||||||
|
|
||||||
|
@ -45,8 +45,8 @@ class Oauth::Ci4sController < Oauth::BaseController
|
||||||
Rails.logger.info("[OAuth2] session[:unionid] -> #{session[:unionid]}")
|
Rails.logger.info("[OAuth2] session[:unionid] -> #{session[:unionid]}")
|
||||||
|
|
||||||
redirect_to root_path(new_user: new_user)
|
redirect_to root_path(new_user: new_user)
|
||||||
rescue Exception => ex
|
# rescue Exception => ex
|
||||||
render_error(ex.message)
|
# render_error(ex.message)
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue