蘑菇线路表
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
function auto_format_list(){
|
||||
$product_list = [0, 1, 2, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17];
|
||||
$product_list = [0, 1, 2, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18];
|
||||
foreach ($product_list as $product) {
|
||||
switch ($product) {
|
||||
case 0:
|
||||
@@ -96,6 +96,12 @@ function format_all_product($file_path)
|
||||
case '共享':
|
||||
$dns = 'shihui';
|
||||
break;
|
||||
case '西瓜':
|
||||
$dns = 'xgip.vip';
|
||||
break;
|
||||
case '蘑菇':
|
||||
$dns = 'mgip.net';
|
||||
break;
|
||||
}
|
||||
$city = city_exist($citys, $info[1]);
|
||||
$citys[] = $city;
|
||||
|
||||
@@ -64,7 +64,7 @@ $mogu_f = fopen(__DIR__ . '/data/mogu.csv', 'w');
|
||||
$mogu = json_decode(get_content("http://xjip.hlapi.com/api/area",''), true)['data'];
|
||||
// print_r($mogu);
|
||||
//写入蘑菇文件
|
||||
mogu_getList($mogu, $mogu_f, $all, $mogu_data, 'mogu');
|
||||
mogu_getList($mogu, $mogu_f, $all, $mogu_data, '蘑菇');
|
||||
fclose($mogu_f);
|
||||
|
||||
$laoying_data = get_product(__DIR__ . '/data/laoying.csv');
|
||||
|
||||
Reference in New Issue
Block a user