This commit is contained in:
“wanyongkang”
2022-05-03 23:07:42 +08:00
parent cc299a5afa
commit 237aadc538

View File

@@ -5,7 +5,7 @@
* @Author: kangkang
* @Date: 2020-09-30 17:32:46
* @LastEditors: Please set LastEditors
* @LastEditTime: 2022-02-08 09:41:30
* @LastEditTime: 2022-03-22 16:55:43
*/
namespace fastphp\base;
@@ -44,10 +44,10 @@ class Controller
$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_limit = file_get_contents('/var/www/ip/ip');
// if ((strpos($ip_limit, $ip) == false)&&$ip!=$ip_limit&&$getPayload['OperaterID']<100000) {
// die;
// }
} else {
die;
}