fixed 批量去掉测试拦截

This commit is contained in:
xxq250 2025-06-06 15:07:13 +08:00
parent cc0d76a798
commit 6533b6b95e
1 changed files with 1 additions and 1 deletions

View File

@ -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)