南阳满载

This commit is contained in:
“wanyongkang”
2021-04-23 12:27:28 +08:00
parent f28316c435
commit 163422f416

View File

@@ -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')]);