diff --git a/script/linedata/get_line_list.php b/script/linedata/get_line_list.php index b5adfb6..c994f92 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-12-28 17:26:52 + * @LastEditTime: 2023-12-29 16:11:22 */ $is_script = 1; include_once __DIR__ . '/../../index.php'; @@ -13,10 +13,16 @@ include_once __DIR__ . '/auto_format.php'; // // //测试用---------------------------------------------------------------------------------------------------------- -// $tiantian = json_decode(file_get_contents("https://xmapi.xingmojs.com/ppp/v1/areas?apiid=130&sendtime=" . time() . "&sign=" . md5('apiid=130&sendtime=' . time() . '3AT7XCHjWG8sSMpRBjtAJ8JRkSAbhJit')), true); +//猎豹 +// $liebao = json_decode(file_get_contents("https://xmapi.xingmojs.com/ppp/v1/areas?apiid=130&sendtime=" . time() . "&sign=" . md5('apiid=130&sendtime=' . time() . '3AT7XCHjWG8sSMpRBjtAJ8JRkSAbhJit')), true)['data']; - -// dump($tiantian); +// if($liebao){ +// $liebao_data = get_product(__DIR__ . '/data/liebao.csv'); +// $liebao_f = fopen(__DIR__ . '/data/liebao.csv', 'w'); +// //写入天天文件 +// liebao_getList($liebao, $liebao_f, $all, $liebao_data, '猎豹'); +// fclose($liebao_f); +// } // die; /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //强子迅联特征码 @@ -178,7 +184,7 @@ fclose($tiantian_f); } //猎豹 -$liebao = json_decode(file_get_contents("https://xmapi.xingmojs.com/ppp/v1/areas?apiid=130&sendtime=" . time() . "&sign=" . md5('apiid=130&sendtime=' . time() . '3AT7XCHjWG8sSMpRBjtAJ8JRkSAbhJit')), true); +$liebao = json_decode(file_get_contents("https://xmapi.xingmojs.com/ppp/v1/areas?apiid=130&sendtime=" . time() . "&sign=" . md5('apiid=130&sendtime=' . time() . '3AT7XCHjWG8sSMpRBjtAJ8JRkSAbhJit')), true)['data']; if($liebao){ $liebao_data = get_product(__DIR__ . '/data/liebao.csv'); @@ -695,9 +701,7 @@ function liebao_getList($data, &$file, &$all, $exit, $product_name) $status = ['故障', '正常']; $key = ''; $list1 = []; - foreach ($data as $info) { - $record = []; $record['name'] = $product_name; $record['city'] = $info['name'];