修改在线状态
This commit is contained in:
@@ -15,28 +15,13 @@ $product_model = new Product;
|
||||
$product_list = $product_model->field('Id,Token')->fetchAll();
|
||||
|
||||
// // //测试用----------------------------------------------------------------------------------------------------------
|
||||
// $url = 'http://106.52.152.33:8899/panel/index';
|
||||
// $header = array();
|
||||
// $header[] = "Cookie: PHPSESSID=4c0teagu80klg065dk4ho0nvu6";
|
||||
// $content = linkcurl($url,'POST',[],$header);
|
||||
|
||||
// //获取所有大分类
|
||||
// preg_match_all("/<tr(.*?)<\/tr>/is", $content, $result);
|
||||
// //获取城市数据
|
||||
// // preg_match_all("/<td id=\"pools\">(.*?)<a/is", $result[1][2], $city);
|
||||
// //根据省份获取数据
|
||||
// preg_match_all("/<span class=\"province(.*?)<hr>/is", $result[1][2], $city);
|
||||
|
||||
|
||||
// $huohu = $city[1];
|
||||
|
||||
// if(!empty($huohu)){
|
||||
// $huohu_f = fopen(__DIR__ . '/data/huohu.csv', 'w');
|
||||
// //写入火狐文件
|
||||
// huohu_getList($huohu, $huohu_f, $all);
|
||||
// fclose($huohu_f);
|
||||
// }
|
||||
|
||||
// $time = time();
|
||||
// $noce = md5(time());
|
||||
// $apikey = 'a478ad5aa3079bbbef3cd45e2d55d61e';
|
||||
// $sign = md5($time.$noce.$apikey);
|
||||
// $url = "http://47.92.116.14:2222/api/getNodeList?agentid=admin1&ti=".$time."&nonce=".$noce."&sign=".$sign;
|
||||
// $qiangzi = json_decode(file_get_contents($url), true)['data'];
|
||||
// dump($qiangzi);
|
||||
|
||||
// die;
|
||||
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -239,7 +224,7 @@ auto_format_list();
|
||||
function qiangzi_getList($data, &$file, &$all, $exit)
|
||||
{
|
||||
global $dnx_exit, $dnx_has_exit,$sp_qz_list;
|
||||
$online = ['故障', '正常', '异常'];
|
||||
$online = ['故障', '正常', '紧张','繁忙'];
|
||||
$status = ['正常', '拥挤', '超载'];
|
||||
|
||||
$key = '';
|
||||
@@ -281,7 +266,7 @@ function qiangzi_getList($data, &$file, &$all, $exit)
|
||||
$record['daikuan'] = $daikuan;
|
||||
$record['onlineuser'] = '';
|
||||
$record['maxuser'] = '';
|
||||
$record['online'] = $info['status'] == 1 ? '正常' : '故障';
|
||||
$record['online'] = $online[$info['status']];
|
||||
|
||||
$record['status'] = $sp_qz_list[$record['city']];
|
||||
if(!empty($info['host2'])){
|
||||
@@ -855,7 +840,7 @@ function gongxiang_getList($html, &$file, &$all, $exit, $pro = '共享')
|
||||
function xunlian_getList($data, &$file, &$all, $exit)
|
||||
{
|
||||
global $dnx_exit, $dnx_has_exit,$sp_xl_list;
|
||||
$online = ['故障', '正常', '异常'];
|
||||
$online = ['故障', '正常', '紧张','繁忙'];
|
||||
$status = ['正常', '拥挤', '超载'];
|
||||
|
||||
$key = '';
|
||||
@@ -897,7 +882,7 @@ function xunlian_getList($data, &$file, &$all, $exit)
|
||||
$record['daikuan'] = $daikuan;
|
||||
$record['onlineuser'] = '';
|
||||
$record['maxuser'] = '';
|
||||
$record['online'] = $info['status'] == 1 ? '正常' : '故障';
|
||||
$record['online'] = $online[$info['status']];;
|
||||
|
||||
$record['status'] = $sp_xl_list[$record['city']];
|
||||
if(!empty($info['host2'])){
|
||||
|
||||
Reference in New Issue
Block a user