星星线路
This commit is contained in:
@@ -15,15 +15,14 @@ use app\api\model\Product;
|
||||
$product_model = new Product;
|
||||
$product_list = $product_model->field('Id,Token')->fetchAll();
|
||||
|
||||
// //测试用
|
||||
// // //测试用
|
||||
// $time = time();
|
||||
// $noce = md5(time());
|
||||
// $apikey = 'a77160a26aa0c4f8bb68c85e5e2c73d8';
|
||||
// $apikey = 'd50f2b2ffd421efa67df8efb96d5ff6c';
|
||||
// $sign = md5($time.$noce.$apikey);
|
||||
// $url = "http://47.92.65.184:2223/api/getNodeList?agentid=admin2&ti=".$time."&nonce=".$noce."&sign=".$sign;
|
||||
|
||||
// $qiangzi = json_decode(file_get_contents($url), true);
|
||||
// print_r($qiangzi);die;
|
||||
// $url = "http://106.54.198.154/api/getNodeList?agentid=admin1&ti=".$time."&nonce=".$noce."&sign=".$sign;
|
||||
// $xingxing = json_decode(file_get_contents($url), true)['data'];
|
||||
// print_r($xingxing);die;
|
||||
// if(!empty($qiangzi)){
|
||||
// $qiangzi_data = get_product(__DIR__ . '/data/qiangzi.csv');
|
||||
// $qiangzi_f = fopen(__DIR__ . '/data/qiangzi.csv', 'w');
|
||||
@@ -274,7 +273,7 @@ function xingxing_getList($data, &$file, &$all, $exit)
|
||||
}
|
||||
|
||||
$record['ip'] = strpos($info['name2'], '-') ? explode('-', $info['name2'])[1] : $info['name2'];
|
||||
$record['daikuan'] = strpos($info['name2'], '-')[1];
|
||||
$record['daikuan'] = $info['bandwidth'];
|
||||
$record['onlineuser'] = '';
|
||||
$record['maxuser'] = '';
|
||||
$record['online'] = ($info['status'] == 1) ? '正常' : '故障';
|
||||
|
||||
Reference in New Issue
Block a user