线路表

This commit is contained in:
“wanyongkang”
2021-09-02 13:52:39 +08:00
parent 078dc352bb
commit b58c37575b

View File

@@ -18,7 +18,11 @@ $product_list = $product_model->field('Id,Token')->fetchAll();
// $apikey = '80cf4f64e990b78a9fc5eb';
// $url = "http://rds-api.juip.com/server/index/getList?apikey=".$apikey;
// $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;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//强子迅联特征码
@@ -52,13 +56,13 @@ $dnx_exit = fopen(__DIR__ . '/data/dns_diff.csv', 'a');
$dnx_has_exit = get_product(__DIR__ . '/data/dns_diff.csv', 1);
//-----------------------------------------------------------------------------------------------------
$apikey = '80cf4f64e990b78a9fc5eb';
$url = "http://rds-api.juip.com/server/index/getList?apikey=".$apikey;
$mogu_data = get_product(__DIR__ . '/data/mogu.csv');
$mogu_f = fopen(__DIR__ . '/data/mogu.csv', 'w');
$url = "http://rds-api.juip.com/api/index/getList?apikey=".$apikey;
$mogu = json_decode(file_get_contents($url), true)['data'];
mogu_getList($mogu, $mogu_f, $all, $mogu_data);
fclose($mogu_f);
if ($mogu) {
$mogu_f = fopen(__DIR__ . '/data/mogu.csv', 'w');
mogu_getList($mogu, $mogu_f, $all);
fclose($mogu_f);
}
$time = 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 = '';
$list1 = [];
// print_r($data);
@@ -564,7 +566,7 @@ function mogu_getList($data, &$file, &$all, $exit, $product_name='蘑菇')
$record['daikuan'] = $info['daikuan'];
$record['onlineuser'] = '';
$record['maxuser'] = '';
$record['online'] = $info['status'] ? '正常' : '故障';
$record['online'] = $info['status'];
$record['status'] = '';
$record['nasname'] = $info['address'];
$list1[$key][] = $record;