云牛服务器顺序修改

This commit is contained in:
“wanyongkang”
2023-10-23 16:58:35 +08:00
parent 410cad9e88
commit 81ae16a428

View File

@@ -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-10-23 15:54:05 * @LastEditTime: 2023-10-23 16:58:20
*/ */
$is_script = 1; $is_script = 1;
include_once __DIR__ . '/../../index.php'; include_once __DIR__ . '/../../index.php';
@@ -13,16 +13,20 @@ include_once __DIR__ . '/auto_format.php';
// // //测试用---------------------------------------------------------------------------------------------------------- // // //测试用----------------------------------------------------------------------------------------------------------
///动态
// $url = 'http://int.linghangsoft.net:8000/sysadmin/useradmin/lineapi_admin1.php?secretId=108006113&secretKey=87085a351a64c116df09ebc07d5781sf';
// $yunniu = json_decode(file_get_contents($url), true);
// $laoying = json_decode(file_get_contents("http://diqu.pptp.pro:8070/sapi/getroslist"), true)['list']; // if(!empty($yunniu)){
// if($laoying){ // $yunniu_f = fopen(__DIR__ . '/data/yunniu.csv', 'w');
// $laoying_data = get_product(__DIR__ . '/data/laoying.csv'); // //写入火狐文件
// $laoying_f = fopen(__DIR__ . '/data/laoying.csv', 'w'); // $yunniu_data = get_product(__DIR__ . '/data/yunniu.csv');
// //写入老鹰文件 // yunniu_getList($yunniu, $yunniu_f, $all,$yunniu_data);
// laoying_getList($laoying, $laoying_f, $all, $laoying_data); // fclose($yunniu_f);
// fclose($laoying_f);
// } // }
// die; // die;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//强子迅联特征码 //强子迅联特征码
@@ -117,26 +121,26 @@ $url = 'http://int.linghangadmin.com:8000/sysadmin/useradmin/lineapi_admin1.php?
$huohu = json_decode(file_get_contents($url), true); $huohu = json_decode(file_get_contents($url), true);
// if(!empty($huohu)){ if(!empty($huohu)){
// $huohu_f = fopen(__DIR__ . '/data/huohu.csv', 'w'); $huohu_f = fopen(__DIR__ . '/data/huohu.csv', 'w');
// //写入火狐文件 //写入火狐文件
// $huohu_data = get_product(__DIR__ . '/data/huohu.csv'); $huohu_data = get_product(__DIR__ . '/data/huohu.csv');
// huohu_getList($huohu, $huohu_f, $all,$huohu_data); huohu_getList($huohu, $huohu_f, $all,$huohu_data);
// fclose($huohu_f); fclose($huohu_f);
// } }
// ///动态 ///动态
// $url = 'http://int.linghangsoft.net:8000/sysadmin/useradmin/lineapi_admin1.php?secretId=108006113&secretKey=87085a351a64c116df09ebc07d5781sf'; $url = 'http://int.linghangsoft.net:8000/sysadmin/useradmin/lineapi_admin1.php?secretId=108006113&secretKey=87085a351a64c116df09ebc07d5781sf';
// $yunniu = json_decode(file_get_contents($url), true); $yunniu = json_decode(file_get_contents($url), true);
// if(!empty($yunniu)){ if(!empty($yunniu)){
// $yunniu_f = fopen(__DIR__ . '/data/yunniu.csv', 'w'); $yunniu_f = fopen(__DIR__ . '/data/yunniu.csv', 'w');
// //写入火狐文件 //写入火狐文件
// $yunniu_data = get_product(__DIR__ . '/data/yunniu.csv'); $yunniu_data = get_product(__DIR__ . '/data/yunniu.csv');
// yunniu_getList($yunniu, $yunniu_f, $all,$yunniu_data); yunniu_getList($yunniu, $yunniu_f, $all,$yunniu_data);
// fclose($yunniu_f); fclose($yunniu_f);
// } }
@@ -428,6 +432,17 @@ function huohu_getList($data, &$file, &$all, $exit)
fputcsv($dnx_exit, ['火狐', explode('.',$record['nasname'])[0], $record['nasname'], date('Y-m-d H:i:s')]); fputcsv($dnx_exit, ['火狐', explode('.',$record['nasname'])[0], $record['nasname'], date('Y-m-d H:i:s')]);
} }
} }
$temp = [];
foreach ($list as $key=>$val) {
if ($key == '全国') {
$temp = $val;
unset($list['全国']);
}
}
array_unshift($list,$temp);
foreach ($list as $val) { foreach ($list as $val) {
foreach ($val as $net_data) { foreach ($val as $net_data) {
@@ -476,6 +491,17 @@ function yunniu_getList($data, &$file, &$all, $exit)
fputcsv($dnx_exit, ['火狐', explode('.',$record['nasname'])[0], $record['nasname'], date('Y-m-d H:i:s')]); fputcsv($dnx_exit, ['火狐', explode('.',$record['nasname'])[0], $record['nasname'], date('Y-m-d H:i:s')]);
} }
} }
$temp = [];
foreach ($list as $key=>$val) {
if ($key == '全国') {
$temp = $val;
unset($list['全国']);
}
}
array_unshift($list,$temp);
foreach ($list as $val) { foreach ($list as $val) {
foreach ($val as $net_data) { foreach ($val as $net_data) {