From 8adf067232ea96e5c9dc1dda2937a1fdc4932e83 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Tue, 30 May 2023 15:00:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=8C=B9=E9=85=8D=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E6=96=B9=E6=B3=95=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/common.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crmeb/app/common.php b/crmeb/app/common.php index ac7806836..8d8575b0d 100644 --- a/crmeb/app/common.php +++ b/crmeb/app/common.php @@ -682,10 +682,10 @@ if (!function_exists('get_file_link')) { if (!$link) { return ''; } - if (strstr('http', $link) === false) { - return app()->request->domain() . $link; - } else { + if (substr($link, 0, 4) === "http" || substr($link, 0, 2) === "//") { return $link; + } else { + return app()->request->domain() . $link; } } }