添加日志信息以供调试

dev_partners
Alec Zhou 6 years ago
parent 0486340146
commit 4801ba2917

@ -1151,6 +1151,10 @@ class ApplicationController < ActionController::Base
def user_login_and_from_openi def user_login_and_from_openi
url = request.referer.nil? ? Redmine::Configuration['educoder_domain'] : request.referer url = request.referer.nil? ? Redmine::Configuration['educoder_domain'] : request.referer
URI(url).host == 'openi.org.cn' && !current_user.logged? flag = URI(url).host == 'localhost' && !current_user.logged?
logger.debug "----------------------- #{url} -------------------------"
logger.debug "----------------------- #{URI(url).host} --------------------------"
logger.debug "----------------------- #{flag} -------------------------"
flag
end end
end end

Loading…
Cancel
Save