Merge branch 'hotfix/download_cdn' of wmtx/platform into release

修改包下载bug
master
万盟天下 5 years ago committed by Gogs
commit 63b99ad198

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

Loading…
Cancel
Save