老鹰服务器顺序修改
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-10-23 15:42:08
|
||||
* @LastEditTime: 2023-10-23 15:52:05
|
||||
*/
|
||||
$is_script = 1;
|
||||
include_once __DIR__ . '/../../index.php';
|
||||
@@ -14,16 +14,16 @@ include_once __DIR__ . '/auto_format.php';
|
||||
// //测试用----------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
// $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);
|
||||
// }
|
||||
$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;
|
||||
die;
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//强子迅联特征码
|
||||
$sp_xl_code = file_get_contents(__DIR__ . '/data/xl.txt', 'r');
|
||||
@@ -772,9 +772,11 @@ function laoying_getList($list, &$file, &$all, $exit)
|
||||
|
||||
}
|
||||
foreach ($list1 as $val) {
|
||||
$temp = $val[0];
|
||||
unset($val[0]);
|
||||
$sort = array_column($val,'city');
|
||||
array_multisort($sort,SORT_ASC,$val);
|
||||
|
||||
array_unshift($val,$temp);
|
||||
foreach ($val as $net_data) {
|
||||
|
||||
fputcsv($file, $net_data);
|
||||
|
||||
Reference in New Issue
Block a user