猎豹线路表
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
* @Author: kangkang
|
* @Author: kangkang
|
||||||
* @Date: 2020-11-03 11:04:15
|
* @Date: 2020-11-03 11:04:15
|
||||||
* @LastEditors: “wanyongkang” “937888580@qq.com”
|
* @LastEditors: “wanyongkang” “937888580@qq.com”
|
||||||
* @LastEditTime: 2023-12-28 17:26:52
|
* @LastEditTime: 2023-12-29 16:11:22
|
||||||
*/
|
*/
|
||||||
$is_script = 1;
|
$is_script = 1;
|
||||||
include_once __DIR__ . '/../../index.php';
|
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'];
|
||||||
|
|
||||||
|
// if($liebao){
|
||||||
// dump($tiantian);
|
// $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;
|
// 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){
|
if($liebao){
|
||||||
$liebao_data = get_product(__DIR__ . '/data/liebao.csv');
|
$liebao_data = get_product(__DIR__ . '/data/liebao.csv');
|
||||||
@@ -695,9 +701,7 @@ function liebao_getList($data, &$file, &$all, $exit, $product_name)
|
|||||||
$status = ['故障', '正常'];
|
$status = ['故障', '正常'];
|
||||||
$key = '';
|
$key = '';
|
||||||
$list1 = [];
|
$list1 = [];
|
||||||
|
|
||||||
foreach ($data as $info) {
|
foreach ($data as $info) {
|
||||||
|
|
||||||
$record = [];
|
$record = [];
|
||||||
$record['name'] = $product_name;
|
$record['name'] = $product_name;
|
||||||
$record['city'] = $info['name'];
|
$record['city'] = $info['name'];
|
||||||
|
|||||||
Reference in New Issue
Block a user