From cf9f3eaf6701b9b7f646543a735fc748122e76f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Wed, 1 Feb 2023 13:43:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6IP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastphp/base/Controller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fastphp/base/Controller.php b/fastphp/base/Controller.php index fe13a6a..baacaeb 100644 --- a/fastphp/base/Controller.php +++ b/fastphp/base/Controller.php @@ -46,9 +46,9 @@ class Controller $ip = getIp(); $ip_limit = trim(file_get_contents('/var/www/ip/ip')); // if ((strpos($ip_limit, $ip) == false)&&$ip!=$ip_limit&&$getPayload['OperaterID']<100000) { - // if ((strpos($ip_limit, $ip) == false)&&$getPayload['OperaterID']<100000) { - // die; - // } + if ((strpos($ip_limit, $ip) == false)&&$getPayload['OperaterID']<100000) { + die; + } } else { die; }