增加Ip显示

dev_local
daiao 6 years ago
parent 80f68480f8
commit fc3adf37c1

@ -106,6 +106,7 @@ module Mobile
#
Rails.logger.info("########### host is #{request.host}")
Rails.logger.info("########### ip is #{request.remote_ip}")
if (Rails.env.development? && session[:user_id].blank?) || (session[:user_id].blank? && request.host.include?("testbdweb")) || params[:action] == "privateGit"
session[:user_id] = 12 #116
end

Loading…
Cancel
Save