|
|
@ -33,9 +33,9 @@ module Mobile
|
|
|
|
if params[:edu]
|
|
|
|
if params[:edu]
|
|
|
|
Rails.logger.info("####11111222##{@env['HTTP_X_REAL_IP']}")
|
|
|
|
Rails.logger.info("####11111222##{@env['HTTP_X_REAL_IP']}")
|
|
|
|
ip = @env['HTTP_X_REAL_IP']
|
|
|
|
ip = @env['HTTP_X_REAL_IP']
|
|
|
|
ua = UserAgent.where(:ip => ip, :type => UserAgent::AD)
|
|
|
|
ua = UserAgent.where(:ip => ip)
|
|
|
|
unless ua
|
|
|
|
unless ua
|
|
|
|
UserAgent.create(:key => params[:edu].strip, :ip => ip, :type => UserAgent::AD)
|
|
|
|
UserAgent.create!(:key => params[:edu].strip, :ip => ip, :type => UserAgent::AD)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
MemosService.new.show params, current_user
|
|
|
|
MemosService.new.show params, current_user
|
|
|
|