代理放行

This commit is contained in:
“wanyongkang”
2021-11-16 08:54:27 +08:00
parent 4d80689c84
commit e8228c414c

View File

@@ -5,7 +5,7 @@
* @Author: kangkang
* @Date: 2020-09-30 17:32:46
* @LastEditors: Please set LastEditors
* @LastEditTime: 2021-11-13 17:39:01
* @LastEditTime: 2021-11-16 08:54:01
*/
namespace fastphp\base;
@@ -39,13 +39,15 @@ class Controller
} else {
if(isset($_SERVER['HTTP_TOKEN'])){
$ip = getIp();
$ip_limit = file_get_contents('/var/www/ip/ip');
if ((strpos($ip_limit, $ip) == false)&&$ip!=$ip_limit) {
die;
}
$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;
}
} else {
die;
}