蘑菇线路表

This commit is contained in:
“wanyongkang”
2021-01-26 18:56:26 +08:00
parent f691a24799
commit efeb9f51d9
2 changed files with 8 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
<?php <?php
function auto_format_list(){ 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) { foreach ($product_list as $product) {
switch ($product) { switch ($product) {
case 0: case 0:
@@ -96,6 +96,12 @@ function format_all_product($file_path)
case '共享': case '共享':
$dns = 'shihui'; $dns = 'shihui';
break; break;
case '西瓜':
$dns = 'xgip.vip';
break;
case '蘑菇':
$dns = 'mgip.net';
break;
} }
$city = city_exist($citys, $info[1]); $city = city_exist($citys, $info[1]);
$citys[] = $city; $citys[] = $city;

View File

@@ -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']; $mogu = json_decode(get_content("http://xjip.hlapi.com/api/area",''), true)['data'];
// print_r($mogu); // print_r($mogu);
//写入蘑菇文件 //写入蘑菇文件
mogu_getList($mogu, $mogu_f, $all, $mogu_data, 'mogu'); mogu_getList($mogu, $mogu_f, $all, $mogu_data, '蘑菇');
fclose($mogu_f); fclose($mogu_f);
$laoying_data = get_product(__DIR__ . '/data/laoying.csv'); $laoying_data = get_product(__DIR__ . '/data/laoying.csv');