天天IP
This commit is contained in:
@@ -14,25 +14,18 @@ use app\api\model\Product;
|
||||
$product_model = new Product;
|
||||
$product_list = $product_model->field('Id,Token')->fetchAll();
|
||||
|
||||
// // //测试用----------------------------------------------------------------------------------------------------------
|
||||
// $url = 'http://106.52.152.33:8899/panel/index';
|
||||
// $header = array();
|
||||
// $header[] = "Cookie: PHPSESSID=4c0teagu80klg065dk4ho0nvu6";
|
||||
// $content = linkcurl($url,'POST',[],$header);
|
||||
// print_r($content);
|
||||
// //获取所有大分类
|
||||
// preg_match_all("/<tr(.*?)<\/tr>/is", $content, $result);
|
||||
// //获取城市数据
|
||||
// // preg_match_all("/<td id=\"pools\">(.*?)<a/is", $result[1][2], $city);
|
||||
// //根据省份获取数据
|
||||
// preg_match_all("/<span class=\"province(.*?)<hr>/is", $result[1][2], $city);
|
||||
|
||||
// $huohu = $city[1];
|
||||
|
||||
// print_r($huohu);
|
||||
// //测试用----------------------------------------------------------------------------------------------------------
|
||||
// $tiantian = json_decode(file_get_contents("https://yoyoapi.yoyoip.com/v1/areas?apiid=89&sendtime=" . time() . "&sign=" . md5('apiid=89&sendtime=' . time() . 'NFeK72yYXmPiGR86YeMCBRTWDxXkrQsd')), true)['data'];
|
||||
// if($tiantian){
|
||||
// $tiantian_data = get_product(__DIR__ . '/data/tiantian.csv');
|
||||
// $tiantian_f = fopen(__DIR__ . '/data/tiantian.csv', 'w');
|
||||
// //写入天天文件
|
||||
// tiantian_getList($tiantian, $tiantian_f, $all, $tiantian_data, '天天');
|
||||
// fclose($tiantian_f);
|
||||
// }
|
||||
|
||||
// die;
|
||||
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//强子迅联特征码
|
||||
$sp_xl_code = file_get_contents(__DIR__ . '/data/xl.txt', 'r');
|
||||
|
||||
@@ -149,7 +142,7 @@ jike_getList($xigua, $xigua_f, $all, $xigua_data, false);
|
||||
fclose($xigua_f);
|
||||
}
|
||||
|
||||
$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'];
|
||||
$tiantian = json_decode(file_get_contents("https://yoyoapi.yoyoip.com/v1/areas?apiid=89&sendtime=" . time() . "&sign=" . md5('apiid=89&sendtime=' . time() . 'NFeK72yYXmPiGR86YeMCBRTWDxXkrQsd')), true)['data'];
|
||||
if($tiantian){
|
||||
$tiantian_data = get_product(__DIR__ . '/data/tiantian.csv');
|
||||
$tiantian_f = fopen(__DIR__ . '/data/tiantian.csv', 'w');
|
||||
|
||||
Reference in New Issue
Block a user