修改ip限制

This commit is contained in:
“wanyongkang”
2024-02-18 11:32:16 +08:00
parent cac440ba9c
commit dfb347500e
2 changed files with 7 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
* @Author: kangkang * @Author: kangkang
* @Date: 2020-09-30 17:32:46 * @Date: 2020-09-30 17:32:46
* @LastEditors: “wanyongkang” “937888580@qq.com” * @LastEditors: “wanyongkang” “937888580@qq.com”
* @LastEditTime: 2024-02-02 17:30:32 * @LastEditTime: 2024-02-18 11:30:43
*/ */
namespace fastphp\base; namespace fastphp\base;
@@ -44,11 +44,11 @@ class Controller
$getPayload=$jwt->verifyToken($_SERVER['HTTP_TOKEN']); $getPayload=$jwt->verifyToken($_SERVER['HTTP_TOKEN']);
$ip = getIp(); $ip = getIp();
// $ip_limit = trim(file_get_contents('/var/www/ip/ip')); $ip_limit = trim(file_get_contents('/var/www/ip/ip'));
// if ((strpos($ip_limit, $ip) == false)&&$ip!=$ip_limit&&$getPayload['OperaterID']<100000) { // if ((strpos($ip_limit, $ip) == false)&&$ip!=$ip_limit&&$getPayload['OperaterID']<100000) {
// if ((strpos($ip_limit, $ip) == false)&&$getPayload['OperaterID']<100000) { if ((strpos($ip_limit, $ip) == false)&&$getPayload['OperaterID']<100000) {
// die; die;
// } }
} else { } else {
die; die;
} }

View File

@@ -5,7 +5,7 @@
* @Author: kangkang * @Author: kangkang
* @Date: 2020-11-03 11:04:15 * @Date: 2020-11-03 11:04:15
* @LastEditors: “wanyongkang” “937888580@qq.com” * @LastEditors: “wanyongkang” “937888580@qq.com”
* @LastEditTime: 2024-01-20 17:15:16 * @LastEditTime: 2024-02-18 11:28:28
*/ */
$is_script = 1; $is_script = 1;
@@ -998,7 +998,7 @@ function shuidi_getList($data, &$file, &$all, $exit )
$record['maxuser'] = ''; $record['maxuser'] = '';
$record['online'] = $city_info['online'] ? '正常' : '故障'; $record['online'] = $city_info['online'] ? '正常' : '故障';
$record['status'] = $city_info['cpu_load']."%"; $record['status'] = $city_info['cpu_load']."%";
$record['nasname'] = $city_info['domain']; $record['nasname'] = "前往账号中心查看";
$list1[$key][] = $record; $list1[$key][] = $record;
if (!in_array($record['nasname'], $exit) && !in_array($record['nasname'], $dnx_has_exit)) { if (!in_array($record['nasname'], $exit) && !in_array($record['nasname'], $dnx_has_exit)) {