修改包下载bug

master
ELF 5 years ago
parent 802c6b02b7
commit fb64d574cb

@ -85,7 +85,7 @@ class PackageController extends Controller
private function gotoPkgUrl($packageUrl)
{
if (preg_match("/oss/", $packageUrl)) {
if (preg_match("/http/", $packageUrl)) {
$url = str_replace('-internal', '', $packageUrl);
echo "<script>window.location.href='$url';</script>";
} elseif (preg_match("/clouddn/", $packageUrl)) {

Loading…
Cancel
Save