diff --git a/fastphp/base/Controller.php b/fastphp/base/Controller.php index 23a1fd5..029a2c3 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: “wanyongkang” “937888580@qq.com” - * @LastEditTime: 2022-06-10 10:43:13 + * @LastEditTime: 2022-06-15 18:27:44 */ namespace fastphp\base; @@ -43,11 +43,11 @@ 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; }