From 065fc5f76012b2f0f95f7d59de21482b1c7e54d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=80=86=E5=A4=A9=E7=9A=84=E8=9D=88=E8=9D=88?= <632522043@qq.com> Date: Wed, 7 Sep 2022 01:38:54 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=80=20=E4=BC=98=E5=8C=96URL=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 逆天的蝈蝈 <632522043@qq.com> --- app/functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/functions.php b/app/functions.php index 0cdd7aef..9f532f31 100644 --- a/app/functions.php +++ b/app/functions.php @@ -84,6 +84,8 @@ if (!function_exists('url')) { if (!Str::startsWith($url, '/')) { $url = DIRECTORY_SEPARATOR . $url; + }else{ + return $url . $vars; } return $app == 'index' ? $url . $vars : '/' . $app . $url . $vars; -- Gitee