👩💻 Join our community of thousands of amazing developers!
第一种方法(虚拟主机反代) 将下面的代码保存为index.php 1){ $cdn_file = substr($file, strlen($self_path)); } $local_path = substr(pathinfo( $cdn_file, PATHINFO_DIRNAME), 1); if($local_path && !is_dir($local_path)){ @mkdir($local_path, 755, true); } $url = 'https://cdn.jsdelivr.net' . $cdn_file . $query; $content = curl($url); if($content){ header('content-type:'. $mimetype .';charset=utf-8'); echo '/* ' . $url .'*/'; file_put_contents(substr($cdn_file, 1), $content); exit($content); }else{ ...