天天地区修改

This commit is contained in:
“wanyongkang”
2023-11-21 14:37:40 +08:00
parent 51c88dfc9c
commit ad6d4fc418

View File

@@ -5,7 +5,7 @@
* @Author: kangkang
* @Date: 2020-11-03 11:04:15
* @LastEditors: “wanyongkang” “937888580@qq.com”
* @LastEditTime: 2023-11-09 09:56:16
* @LastEditTime: 2023-11-21 14:35:50
*/
$is_script = 1;
include_once __DIR__ . '/../../index.php';
@@ -13,20 +13,8 @@ include_once __DIR__ . '/auto_format.php';
// // //测试用----------------------------------------------------------------------------------------------------------
///动态
// $url = 'http://int.linghangsoft.net:8000/sysadmin/useradmin/lineapi_admin1.php?secretId=108006113&secretKey=87085a351a64c116df09ebc07d5781sf';
// $yunniu = json_decode(file_get_contents($url), true);
// if(!empty($yunniu)){
// $yunniu_f = fopen(__DIR__ . '/data/yunniu.csv', 'w');
// //写入火狐文件
// $yunniu_data = get_product(__DIR__ . '/data/yunniu.csv');
// yunniu_getList($yunniu, $yunniu_f, $all,$yunniu_data);
// fclose($yunniu_f);
// }
// $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'];
// dump($tiantian);
// die;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//强子迅联特征码
@@ -651,13 +639,13 @@ function tiantian_getList($data, &$file, &$all, $exit, $product_name)
foreach ($info['areas'] as $v) {
if (strpos($v['name'], '电信') !== false) {
$record['city'] = explode('电信', $v['name'])[0];
$record['city'] = $v['name'];
$record['supply'] = '电信';
} elseif (strpos($v['name'], '联通') !== false) {
$record['city'] = explode('联通', $v['name'])[0];
$record['city'] = $v['name'];
$record['supply'] = '联通';
} elseif (strpos($v['name'], '移动') !== false) {
$record['city'] = explode('移动', $v['name'])[0];
$record['city'] = $v['name'];
$record['supply'] = '移动';
} else {
$record['city'] = $v['name'];