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