From 8aa4ee83ef57faccb93d591153462c6f101c954e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Sat, 29 Jan 2022 10:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E7=A6=81ip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastphp/base/Controller.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/fastphp/base/Controller.php b/fastphp/base/Controller.php index 049a0e8..d76dd95 100644 --- a/fastphp/base/Controller.php +++ b/fastphp/base/Controller.php @@ -5,7 +5,7 @@ * @Author: kangkang * @Date: 2020-09-30 17:32:46 * @LastEditors: Please set LastEditors - * @LastEditTime: 2021-11-16 08:54:01 + * @LastEditTime: 2022-01-15 09:23:08 */ namespace fastphp\base; @@ -43,19 +43,19 @@ class Controller $jwt = new Jwt('etor_yh_lzh_20f_2020_YES'); $getPayload=$jwt->verifyToken($_SERVER['HTTP_TOKEN']); - $ip = getIp(); - $ip_limit = file_get_contents('/var/www/ip/ip'); - if ((strpos($ip_limit, $ip) == false)&&$ip!=$ip_limit&&$getPayload['OperaterID']<100000) { - die; - } + // $ip = getIp(); + // $ip_limit = file_get_contents('/var/www/ip/ip'); + // if ((strpos($ip_limit, $ip) == false)&&$ip!=$ip_limit&&$getPayload['OperaterID']<100000) { + // die; + // } } else { - die; + // die; } } if(!$getPayload){ - die; + // die; } $this->userinfo = $getPayload; }