|
|
|
@ -31,9 +31,9 @@ module Mobile
|
|
|
|
|
get ':id' do
|
|
|
|
|
# 记录用户流量源
|
|
|
|
|
if params[:edu]
|
|
|
|
|
Rails.info("####11111222##{@env}")
|
|
|
|
|
Rails.info("####1111122255##{env}")
|
|
|
|
|
Rails.info("####11111222666##{request}")
|
|
|
|
|
Rails.logger.info("####11111222##{@env}")
|
|
|
|
|
Rails.logger.info("####1111122255##{env}")
|
|
|
|
|
Rails.logger.info("####11111222666##{request}")
|
|
|
|
|
ip = @env['REMOTE_HOST']
|
|
|
|
|
ua = UserAgent.find_by_ip(ip)
|
|
|
|
|
unless ua
|
|
|
|
|