master
ELF 4 years ago
parent c72229e6aa
commit 48274d2f50

@ -446,7 +446,7 @@ class BaseController extends HomeController
$check = Redis::exists($key);
if ($check) {
$count = Redis::incr($key);
if ($count > 3) {
if ($count > 60) {
Log::write('user_access_limit:' . date('Y-m-d H:i:s') . ' ' . $key . '[' . $url . ']', 'INFO');
die('请求太频繁,请稍后再试!');
}

Loading…
Cancel
Save