From 258ab15bc76c13e1641af25d5b427ccc20cb1574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Thu, 21 Jan 2021 16:49:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E7=93=9C=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/linedata/auto_format.php | 5 ++++- script/linedata/display.php | 3 +++ script/linedata/get_line_list.php | 15 +++++++++++++-- script/linedata/search.php | 3 +++ 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/script/linedata/auto_format.php b/script/linedata/auto_format.php index 2934e92..bd33a10 100644 --- a/script/linedata/auto_format.php +++ b/script/linedata/auto_format.php @@ -1,7 +1,7 @@ '正常', 'no' => '故障']; @@ -268,7 +275,11 @@ function jike_getList($data, &$file, &$all, $exit) $province_record = []; foreach ($data as $info) { $record = []; - $record['name'] = '极客'; + if($is_jike){ + $record['name'] = '极客'; + } else { + $record['name'] = '西瓜'; + } //如果存在 不为空 则 if (!in_array($info['province'], $province_record)) { $record['city'] = $info['province']; diff --git a/script/linedata/search.php b/script/linedata/search.php index 556ff44..81cac8d 100755 --- a/script/linedata/search.php +++ b/script/linedata/search.php @@ -53,6 +53,9 @@ if($_GET['type'] == 1){ case 15: search_product(__DIR__.'/data/download/gongxiang.csv','shihui'); break; + case 17: + search_product(__DIR__.'/data/download/xigua.csv','xgip.vip'); + break; } }