强子迅联特征码
This commit is contained in:
@@ -16,15 +16,58 @@ $product_list = $product_model->field('Id,Token')->fetchAll();
|
||||
|
||||
// // //测试用----------------------------------------------------------------------------------------------------------
|
||||
|
||||
// $laoying_data = get_product(__DIR__ . '/data/laoying.csv');
|
||||
// $laoying_f = fopen(__DIR__ . '/data/laoying.csv', 'w');
|
||||
// $laoying = file_get_contents('http://list.wzvps.com/');
|
||||
// //写入老鹰文件
|
||||
// laoying_getList($laoying, $laoying_f, $all, $laoying_data);
|
||||
// $sp_xl_code = file_get_contents(__DIR__ . '/data/xl.txt', 'r');
|
||||
|
||||
// // echo $sp_xl_code;
|
||||
|
||||
// $sp_xl_json = json_decode(substr($sp_xl_code,3),true);
|
||||
// $sp_xl_list = [];
|
||||
// foreach($sp_xl_json as $k=>$v){
|
||||
// $temp = explode('-',$k);
|
||||
// $sp_xl_list[$temp[1]] = $v;
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// $sp_qz_code = file_get_contents(__DIR__ . '/data/qz.txt', 'r');
|
||||
|
||||
// // echo $sp_qz_code;
|
||||
|
||||
// $sp_qz_json = json_decode(substr($sp_qz_code,3),true);
|
||||
// $sp_qz_list = [];
|
||||
// foreach($sp_qz_json as $k=>$v){
|
||||
// $temp = explode('-',$k);
|
||||
// $sp_qz_list[$temp[1]] = $v;
|
||||
// }
|
||||
|
||||
// die;
|
||||
|
||||
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//强子迅联特征码
|
||||
$sp_xl_code = file_get_contents(__DIR__ . '/data/xl.txt', 'r');
|
||||
|
||||
// echo $sp_xl_code;
|
||||
|
||||
$sp_xl_json = json_decode(substr($sp_xl_code,3),true);
|
||||
$sp_xl_list = [];
|
||||
foreach($sp_xl_json as $k=>$v){
|
||||
$temp = explode('-',$k);
|
||||
$sp_xl_list[$temp[1]] = $v;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$sp_qz_code = file_get_contents(__DIR__ . '/data/qz.txt', 'r');
|
||||
|
||||
// echo $sp_qz_code;
|
||||
|
||||
$sp_qz_json = json_decode(substr($sp_qz_code,3),true);
|
||||
$sp_qz_list = [];
|
||||
foreach($sp_qz_json as $k=>$v){
|
||||
$temp = explode('-',$k);
|
||||
$sp_qz_list[$temp[1]] = $v;
|
||||
}
|
||||
//--------------------------------------------
|
||||
|
||||
$all = fopen(__DIR__ . '/data/all.csv', 'w');
|
||||
$dnx_exit = fopen(__DIR__ . '/data/dns_diff.csv', 'a');
|
||||
@@ -46,6 +89,7 @@ fclose($qiangzi_f);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$time = time();
|
||||
$noce = md5(time());
|
||||
$apikey = 'osoa917321hdjw';
|
||||
@@ -161,7 +205,7 @@ auto_format_list();
|
||||
//强子服务器解析规则
|
||||
function qiangzi_getList($data, &$file, &$all, $exit)
|
||||
{
|
||||
global $dnx_exit, $dnx_has_exit;
|
||||
global $dnx_exit, $dnx_has_exit,$sp_qz_list;
|
||||
$online = ['故障', '正常', '异常'];
|
||||
$status = ['正常', '拥挤', '超载'];
|
||||
|
||||
@@ -206,7 +250,7 @@ function qiangzi_getList($data, &$file, &$all, $exit)
|
||||
$record['maxuser'] = '';
|
||||
$record['online'] = $info['status'] == 1 ? '正常' : '故障';
|
||||
|
||||
$record['status'] = '';
|
||||
$record['status'] = $sp_qz_list[$record['city']];
|
||||
if(!empty($info['host2'])){
|
||||
$nas_list = explode(',',$info['host2']);
|
||||
|
||||
@@ -736,7 +780,7 @@ function gongxiang_getList($html, &$file, &$all, $exit, $pro = '共享')
|
||||
|
||||
function xunlian_getList($data, &$file, &$all, $exit)
|
||||
{
|
||||
global $dnx_exit, $dnx_has_exit;
|
||||
global $dnx_exit, $dnx_has_exit,$sp_xl_list;
|
||||
$online = ['故障', '正常', '异常'];
|
||||
$status = ['正常', '拥挤', '超载'];
|
||||
|
||||
@@ -781,7 +825,7 @@ function xunlian_getList($data, &$file, &$all, $exit)
|
||||
$record['maxuser'] = '';
|
||||
$record['online'] = $info['status'] == 1 ? '正常' : '故障';
|
||||
|
||||
$record['status'] = '';
|
||||
$record['status'] = $sp_xl_list[$record['city']];
|
||||
if(!empty($info['host2'])){
|
||||
$nas_list = explode(',',$info['host2']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user