From c2f5f09206f4780074e7efc6d3c19655df43703c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Mon, 23 Oct 2023 15:52:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=81=E9=B9=B0=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/linedata/get_line_list.php | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/script/linedata/get_line_list.php b/script/linedata/get_line_list.php index d077d85..abe33ba 100755 --- a/script/linedata/get_line_list.php +++ b/script/linedata/get_line_list.php @@ -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);