diff --git a/script/linedata/get_line_list.php b/script/linedata/get_line_list.php index 378ecb6..9f6a001 100755 --- a/script/linedata/get_line_list.php +++ b/script/linedata/get_line_list.php @@ -15,11 +15,16 @@ $product_model = new Product; $product_list = $product_model->field('Id,Token')->fetchAll(); // // //测试用---------------------------------------------------------------------------------------------------------- -// $tiantian = json_decode(file_get_contents("http://api.ipzuiduo.com/api/areas?apiid=135&sendtime=" . time() . "&sign=" . md5('apiid=135&sendtime=' . time() . '7dayCFfY6zcwJa6QHtHbGQBRckjJbrbS')), true)['data']; -// dump($tiantian); - -// die; +// $xianfeng = json_decode(file_get_contents("http://apiserver.pptp.biz/Apiserver/getserver"), true); +// print_r($xianfeng);die; +// if($xianfeng){ +// $xianfeng_data = get_product(__DIR__ . '/data/xianfeng.csv'); +// $xianfeng_f = fopen(__DIR__ . '/data/xianfeng.csv', 'w'); +// //写入先锋文件 +// xianfeng_getList($xianfeng, $xianfeng_f, $all, $xianfeng_data); +// fclose($xianfeng_f); +// } // /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //强子迅联特征码 @@ -1000,6 +1005,10 @@ function xianfeng_getList($data, &$file, &$all, $exit) } else { $record['status'] = '满载'; } + //南阳 + if (strpos($record['city'], '南阳') !== false) { + $record['status'] = '满载'; + } $record['nasname'] = $info['nasname']; if (!in_array($record['nasname'], $exit) && !in_array($record['nasname'], $dnx_has_exit)) { fputcsv($dnx_exit, ['先锋', $record['nasname'], date('Y-m-d H:i:s')]);