老鹰服务器顺序修改
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
* @Author: kangkang
|
* @Author: kangkang
|
||||||
* @Date: 2020-11-03 11:04:15
|
* @Date: 2020-11-03 11:04:15
|
||||||
* @LastEditors: “wanyongkang” “937888580@qq.com”
|
* @LastEditors: “wanyongkang” “937888580@qq.com”
|
||||||
* @LastEditTime: 2023-08-10 17:19:52
|
* @LastEditTime: 2023-10-23 15:42:08
|
||||||
*/
|
*/
|
||||||
$is_script = 1;
|
$is_script = 1;
|
||||||
include_once __DIR__ . '/../../index.php';
|
include_once __DIR__ . '/../../index.php';
|
||||||
@@ -14,21 +14,13 @@ include_once __DIR__ . '/auto_format.php';
|
|||||||
// //测试用----------------------------------------------------------------------------------------------------------
|
// //测试用----------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// $time = time();
|
// $laoying = json_decode(file_get_contents("http://diqu.pptp.pro:8070/sapi/getroslist"), true)['list'];
|
||||||
// $noce = md5(time());
|
// if($laoying){
|
||||||
// $apikey = 'a478ad5aa3079bbbef3cd45e2d55d61e';
|
// $laoying_data = get_product(__DIR__ . '/data/laoying.csv');
|
||||||
// $sign = md5($time.$noce.$apikey);
|
// $laoying_f = fopen(__DIR__ . '/data/laoying.csv', 'w');
|
||||||
// $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'];
|
// laoying_getList($laoying, $laoying_f, $all, $laoying_data);
|
||||||
// dump($qiangzi);
|
// fclose($laoying_f);
|
||||||
|
|
||||||
// if(!empty($qiangzi)){
|
|
||||||
// $qiangzi_data = get_product(__DIR__ . '/data/qiangzijt.csv');
|
|
||||||
// $qiangzi_f = fopen(__DIR__ . '/data/qiangzijt.csv', 'w');
|
|
||||||
|
|
||||||
// //写入强子文件
|
|
||||||
// qiangzijt_getList($qiangzi, $qiangzi_f, $all, $qiangzi_data);
|
|
||||||
// fclose($qiangzi_f);
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// die;
|
// die;
|
||||||
@@ -732,13 +724,10 @@ function laoying_getList($list, &$file, &$all, $exit)
|
|||||||
//运营商
|
//运营商
|
||||||
if (strpos($info['server_address'], '电信') !== false) {
|
if (strpos($info['server_address'], '电信') !== false) {
|
||||||
$supply = '电信';
|
$supply = '电信';
|
||||||
$info['server_address'] = mb_substr($info['server_address'], 0, mb_strlen($info['server_address']) - 2);
|
|
||||||
} elseif (strpos($info['server_address'], '联通') !== false) {
|
} elseif (strpos($info['server_address'], '联通') !== false) {
|
||||||
$supply = '联通';
|
$supply = '联通';
|
||||||
$info['server_address'] = mb_substr($info['server_address'], 0, mb_strlen($info['server_address']) - 2);
|
|
||||||
} elseif (strpos($info['server_address'], '移动') !== false) {
|
} elseif (strpos($info['server_address'], '移动') !== false) {
|
||||||
$supply = '移动';
|
$supply = '移动';
|
||||||
$info['server_address'] = mb_substr($info['server_address'], 0, mb_strlen($info['server_address']) - 2);
|
|
||||||
} else {
|
} else {
|
||||||
$supply = '电信/联通';
|
$supply = '电信/联通';
|
||||||
}
|
}
|
||||||
@@ -783,6 +772,9 @@ function laoying_getList($list, &$file, &$all, $exit)
|
|||||||
|
|
||||||
}
|
}
|
||||||
foreach ($list1 as $val) {
|
foreach ($list1 as $val) {
|
||||||
|
$sort = array_column($val,'city');
|
||||||
|
array_multisort($sort,SORT_ASC,$val);
|
||||||
|
|
||||||
foreach ($val as $net_data) {
|
foreach ($val as $net_data) {
|
||||||
|
|
||||||
fputcsv($file, $net_data);
|
fputcsv($file, $net_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user