线路表
This commit is contained in:
@@ -18,7 +18,11 @@ $product_list = $product_model->field('Id,Token')->fetchAll();
|
|||||||
// $apikey = '80cf4f64e990b78a9fc5eb';
|
// $apikey = '80cf4f64e990b78a9fc5eb';
|
||||||
// $url = "http://rds-api.juip.com/server/index/getList?apikey=".$apikey;
|
// $url = "http://rds-api.juip.com/server/index/getList?apikey=".$apikey;
|
||||||
// $mogu = json_decode(file_get_contents($url), true)['data'];
|
// $mogu = json_decode(file_get_contents($url), true)['data'];
|
||||||
// mogu_getList($mogu, $mogu_f, $all, $mogu_data, '蘑菇');
|
// dump($mogu);die;
|
||||||
|
// $mogu_data = get_product(__DIR__ . '/data/mogu.csv');
|
||||||
|
// $mogu_f = fopen(__DIR__ . '/data/mogu.csv', 'w');
|
||||||
|
// mogu_getList($mogu, $mogu_f, $all, $mogu_data);
|
||||||
|
// fclose($mogu_f);
|
||||||
// die;
|
// die;
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
//强子迅联特征码
|
//强子迅联特征码
|
||||||
@@ -52,13 +56,13 @@ $dnx_exit = fopen(__DIR__ . '/data/dns_diff.csv', 'a');
|
|||||||
$dnx_has_exit = get_product(__DIR__ . '/data/dns_diff.csv', 1);
|
$dnx_has_exit = get_product(__DIR__ . '/data/dns_diff.csv', 1);
|
||||||
//-----------------------------------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------------------------------
|
||||||
$apikey = '80cf4f64e990b78a9fc5eb';
|
$apikey = '80cf4f64e990b78a9fc5eb';
|
||||||
$url = "http://rds-api.juip.com/server/index/getList?apikey=".$apikey;
|
$url = "http://rds-api.juip.com/api/index/getList?apikey=".$apikey;
|
||||||
$mogu_data = get_product(__DIR__ . '/data/mogu.csv');
|
|
||||||
$mogu_f = fopen(__DIR__ . '/data/mogu.csv', 'w');
|
|
||||||
$mogu = json_decode(file_get_contents($url), true)['data'];
|
$mogu = json_decode(file_get_contents($url), true)['data'];
|
||||||
mogu_getList($mogu, $mogu_f, $all, $mogu_data);
|
if ($mogu) {
|
||||||
fclose($mogu_f);
|
$mogu_f = fopen(__DIR__ . '/data/mogu.csv', 'w');
|
||||||
|
mogu_getList($mogu, $mogu_f, $all);
|
||||||
|
fclose($mogu_f);
|
||||||
|
}
|
||||||
|
|
||||||
$time = time();
|
$time = time();
|
||||||
$noce = md5(time());
|
$noce = md5(time());
|
||||||
@@ -517,10 +521,8 @@ function tiantian_getList($data, &$file, &$all, $exit, $product_name)
|
|||||||
|
|
||||||
|
|
||||||
//蘑菇服务器解析规则
|
//蘑菇服务器解析规则
|
||||||
function mogu_getList($data, &$file, &$all, $exit, $product_name='蘑菇')
|
function mogu_getList($data, &$file, &$all )
|
||||||
{
|
{
|
||||||
global $dnx_exit, $dnx_has_exit;
|
|
||||||
$status = ['故障', '正常'];
|
|
||||||
$key = '';
|
$key = '';
|
||||||
$list1 = [];
|
$list1 = [];
|
||||||
// print_r($data);
|
// print_r($data);
|
||||||
@@ -564,7 +566,7 @@ function mogu_getList($data, &$file, &$all, $exit, $product_name='蘑菇')
|
|||||||
$record['daikuan'] = $info['daikuan'];
|
$record['daikuan'] = $info['daikuan'];
|
||||||
$record['onlineuser'] = '';
|
$record['onlineuser'] = '';
|
||||||
$record['maxuser'] = '';
|
$record['maxuser'] = '';
|
||||||
$record['online'] = $info['status'] ? '正常' : '故障';
|
$record['online'] = $info['status'];
|
||||||
$record['status'] = '';
|
$record['status'] = '';
|
||||||
$record['nasname'] = $info['address'];
|
$record['nasname'] = $info['address'];
|
||||||
$list1[$key][] = $record;
|
$list1[$key][] = $record;
|
||||||
|
|||||||
Reference in New Issue
Block a user