From 4a166be8d99c98a915cad9de30d27d8f13c8b4b4 Mon Sep 17 00:00:00 2001 From: augushong Date: Thu, 10 Oct 2019 22:37:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common.php b/app/common.php index 1f2301e..2715bbe 100644 --- a/app/common.php +++ b/app/common.php @@ -62,7 +62,7 @@ function get_source_link($url) $resource_domain = get_system_config('resource_domain'); if(empty($resource_domain)){ - request()->host(); + $resource_domain = request()->host().':'. request()->port(); } return 'http://'.$resource_domain.'/'.$url; }