diff --git a/fastphp/base/Controller.php b/fastphp/base/Controller.php index d76dd95..1bfa2db 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: 2022-01-15 09:23:08 + * @LastEditTime: 2022-02-08 09:41:30 */ 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; }