forked from Gitlink/forgeplus
fixed 批量去掉测试拦截
This commit is contained in:
parent
cc0d76a798
commit
6533b6b95e
|
@ -283,7 +283,7 @@ class ApplicationController < ActionController::Base
|
|||
check_key = "request.remote_ip:#{request.remote_ip}"
|
||||
result = Rails.cache.read(check_key)
|
||||
if result.present?
|
||||
if result.to_i > 3
|
||||
if result.to_i > 1000
|
||||
tip_exception(401, '暂时无法请求,请稍后再试')
|
||||
else
|
||||
Rails.cache.write(check_key, result.to_i + 1)
|
||||
|
|
Loading…
Reference in New Issue