From 3a4b6a13e80c651ec5e4551ba7098283b984be43 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 17:17:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E5=8F=96=E6=B6=88=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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/linedata/get_line_list.php b/script/linedata/get_line_list.php index 008d430..2119300 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 16:58:20 + * @LastEditTime: 2023-10-23 17:17:09 */ $is_script = 1; include_once __DIR__ . '/../../index.php'; @@ -619,6 +619,11 @@ function jike_getList($data, &$file, &$all, $exit, $is_jike = true) $list1[$key][] = $record; } 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);