diff --git a/index.php b/index.php index 078217f..77a8582 100644 --- a/index.php +++ b/index.php @@ -150,8 +150,10 @@ if($_GET['error']!=""){ if($_GET['path']=='forge/minecraft'){ check_file_update_adv('forge/minecraft/index.json','https://download.mcbbs.net/forge/minecraft','https://download.mcbbs.net/maven/net/minecraftforge/forge/1.7.10-10.13.0.1151/forge-1.7.10-10.13.0.1151-installer.jar'); }else{ - check_file_update_adv($_GET['path'],'https://download.mcbbs.net/'.$_GET['path'],'https://download.mcbbs.net/maven/net/minecraftforge/forge/1.7.10-10.13.0.1151/forge-1.7.10-10.13.0.1151-installer.jar'); + check_file_update_adv($_GET['path'].'/index.json','https://download.mcbbs.net/'.$_GET['path'],'https://download.mcbbs.net/maven/net/minecraftforge/forge/1.7.10-10.13.0.1151/forge-1.7.10-10.13.0.1151-installer.jar'); } + }elseif(strstr($_GET['path'],'forge/download')!=False){//forge/download目录特殊同步 + check_file_update_adv($_GET['path'].'/index.jar','https://download.mcbbs.net/'.$_GET['path'],'https://download.mcbbs.net/maven/net/minecraftforge/forge/1.7.10-10.13.0.1151/forge-1.7.10-10.13.0.1151-installer.jar'); }else{ download_file('https://download.mcbbs.net/'.$_GET['path'],$_GET['path'],''); header('Content-Disposition: attachment; filename="'.basename($_GET['path']).'"');