From fc3adf37c17febd03fa68ce361e8bdfb3eacfd6b Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 29 May 2019 09:28:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Ip=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/mobile/api.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/mobile/api.rb b/app/api/mobile/api.rb index eba39722..6031e82a 100755 --- a/app/api/mobile/api.rb +++ b/app/api/mobile/api.rb @@ -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