This commit is contained in:
“wanyongkang”
2022-04-28 17:43:45 +08:00
parent b15188fc6e
commit 0d0572f1ed
4 changed files with 52 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
<?php
function auto_format_list(){
$product_list = [0, 1, 2, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19,22];
$product_list = [0, 1, 2, 4, 5, 6, 8, 10, 13, 14, 15, 16, 17, 18, 19,22,23];
foreach ($product_list as $product) {
switch ($product) {
case 0:
@@ -52,6 +52,9 @@ function auto_format_list(){
case 22:
format_product(__DIR__ . '/data/huohu.csv','hhip.vip');
break;
case 23:
format_product(__DIR__ . '/data/liebao.csv','lbip.vip');
break;
}
}
}
@@ -111,6 +114,10 @@ function format_all_product($file_path)
case '火狐':
$dns = 'hhip.vip';
break;
case '猎豹':
$dns = 'lbip.vip';
break;
default:
$dns = 'xlip.vip';
break;
@@ -127,8 +134,6 @@ function format_all_product($file_path)
$data['status'] = $info[8] ?? '';
if ($dns == 'shihui') {
$data['nasname'] = $info[9] ?? '';
} elseif ($dns == 'hhip'){
$data['nasname'] = '1.hhip.vip';
} else {
$ip = explode('.', ($info[9] ?? ''));
if (count($ip) == 4) {