From 7a49fe0608bcae88ec0b27cba21db1d936c7778e Mon Sep 17 00:00:00 2001 From: Bigsk <1332540+bigskcode@user.noreply.gitee.com> Date: Mon, 10 Aug 2020 17:53:54 +0800 Subject: [PATCH] update index.php. --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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']).'"');