From 2e1aedf57dbf2101bea88a95815e55ea4e736d43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=99=E7=A0=81=E7=94=9F=E8=8A=B1?= <18523774412@qq.com> Date: Sat, 9 Mar 2024 15:56:15 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=E5=85=AC=E5=85=B1=E5=87=BD=E6=95=B0?= =?UTF-8?q?=20full=5Furl=20=E9=BB=98=E8=AE=A4=E5=9F=9F=E5=90=8D=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E6=90=BA=E5=B8=A6=E5=8D=8F=E8=AE=AE=EF=BC=8C=E7=94=B1?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E8=87=AA=E5=8A=A8=E8=AF=86=E5=88=AB?= =?UTF-8?q?=E6=88=96=E6=89=8B=E5=8A=A8=E6=8C=87=E5=AE=9A?= 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 1de4f8d1..1925c892 100644 --- a/app/common.php +++ b/app/common.php @@ -150,7 +150,7 @@ if (!function_exists('full_url')) { Event::trigger('uploadConfigInit', App::getInstance()); $cdnUrl = Config::get('buildadmin.cdn_url'); - if (!$cdnUrl) $cdnUrl = request()->upload['cdn'] ?? request()->domain(); + if (!$cdnUrl) $cdnUrl = request()->upload['cdn'] ?? '//' . request()->host(); if ($domain === true) { $domain = $cdnUrl; } elseif ($domain === false) {