|
|
@ -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)) {
|
|
|
|