mogu
This commit is contained in:
@@ -15,30 +15,9 @@ $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'];
|
||||
|
||||
// $sp_xl_code = file_get_contents(__DIR__ . '/data/xl.txt', 'r');
|
||||
|
||||
// // echo $sp_xl_code;
|
||||
|
||||
// $sp_xl_json = json_decode(substr($sp_xl_code,3),true);
|
||||
// $sp_xl_list = [];
|
||||
// foreach($sp_xl_json as $k=>$v){
|
||||
// $temp = explode('-',$k);
|
||||
// $sp_xl_list[$temp[1]] = $v;
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// $sp_qz_code = file_get_contents(__DIR__ . '/data/qz.txt', 'r');
|
||||
|
||||
// // echo $sp_qz_code;
|
||||
|
||||
// $sp_qz_json = json_decode(substr($sp_qz_code,3),true);
|
||||
// $sp_qz_list = [];
|
||||
// foreach($sp_qz_json as $k=>$v){
|
||||
// $temp = explode('-',$k);
|
||||
// $sp_qz_list[$temp[1]] = $v;
|
||||
// }
|
||||
// dump($tiantian);
|
||||
|
||||
// die;
|
||||
|
||||
@@ -138,14 +117,17 @@ $tiantian = json_decode(file_get_contents("http://api.ipzuiduo.com/api/areas?api
|
||||
tiantian_getList($tiantian, $tiantian_f, $all, $tiantian_data, '天天');
|
||||
fclose($tiantian_f);
|
||||
|
||||
$mogu_data = get_product(__DIR__ . '/data/mogu.csv');
|
||||
$mogu_f = fopen(__DIR__ . '/data/mogu.csv', 'w');
|
||||
// echo 123;
|
||||
|
||||
$mogu = json_decode(get_content("http://xjip.hlapi.com/api/area",''), true)['data'];
|
||||
// print_r($mogu);
|
||||
//写入蘑菇文件
|
||||
mogu_getList($mogu, $mogu_f, $all, $mogu_data, '蘑菇');
|
||||
fclose($mogu_f);
|
||||
if($mogu){
|
||||
$mogu_data = get_product(__DIR__ . '/data/mogu.csv');
|
||||
$mogu_f = fopen(__DIR__ . '/data/mogu.csv', 'w');
|
||||
// echo 123;
|
||||
// print_r($mogu);
|
||||
//写入蘑菇文件
|
||||
mogu_getList($mogu, $mogu_f, $all, $mogu_data, '蘑菇');
|
||||
fclose($mogu_f);
|
||||
}
|
||||
|
||||
$laoying_data = get_product(__DIR__ . '/data/laoying.csv');
|
||||
$laoying_f = fopen(__DIR__ . '/data/laoying.csv', 'w');
|
||||
|
||||
Reference in New Issue
Block a user