From 8a5e4bf3d6c484a10e1550259a5d4be8fc0137dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Wed, 1 Sep 2021 15:11:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=BF=E8=B7=AF=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/linedata/get_line_list.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/script/linedata/get_line_list.php b/script/linedata/get_line_list.php index ea359aa..2d19678 100755 --- a/script/linedata/get_line_list.php +++ b/script/linedata/get_line_list.php @@ -17,13 +17,17 @@ $product_list = $product_model->field('Id,Token')->fetchAll(); // //测试用---------------------------------------------------------------------------------------------------------- // $time = time(); // $noce = md5(time()); -// $apikey = 'pptpm8dr8kj3'; -// $sign = md5($noce.$apikey); - -// $url = "http://121.41.9.209:8090/gapi/getUserinfo.html?username=mp3635&agentOrigin=admin1&nonce=".$noce."&sign=".$sign; -// // echo $url; -// $test = file_get_contents($url); -// print_r($test); +// $apikey = 'osoa917321hdjw'; +// $sign = md5($time.$noce.$apikey); +// $url = "http://47.92.65.184:2223/api/getNodeList?agentid=admin2&ti=".$time."&nonce=".$noce."&sign=".$sign; +// $xunlian = json_decode(file_get_contents($url), true)['data']; +// if ($xunlian){ +// $xunlian_data = get_product(__DIR__ . '/data/xunlian.csv'); +// $xunlian_f = fopen(__DIR__ . '/data/xunlian.csv', 'w'); +// //写入讯连文件 +// xunlian_getList($xunlian, $xunlian_f, $all, $xunlian_data); +// fclose($xunlian_f); +// } // die; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //强子迅联特征码 @@ -872,6 +876,7 @@ function xunlian_getList($data, &$file, &$all, $exit) $key = $record['city']; $list1[$key][] = $record; } + $key = $city_name[0]; }