From 7d1da070860afd8bd01cc18134a51781c2472db4 Mon Sep 17 00:00:00 2001 From: Devil Date: Wed, 26 May 2021 19:54:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=83=A8=E5=88=86=E5=85=AC?= =?UTF-8?q?=E5=85=B1=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/common.php b/application/common.php index 3fcb41512..9646c6474 100755 --- a/application/common.php +++ b/application/common.php @@ -1285,7 +1285,7 @@ function MyUrl($path, $params=[]) // 开启伪静态则则去除index.php if(MyC('home_seo_url_model', 0) != 0) { - $url = str_replace('index.php', '', $url); + $url = str_replace(['/index.php?s='], '', $url); } return $url; @@ -1338,7 +1338,7 @@ function PluginsHomeUrl($plugins_name, $plugins_control = '', $plugins_action = // 开启伪静态则则去除index.php if(MyC('home_seo_url_model', 0) != 0) { - $url = str_replace('index.php', '', $url); + $url = str_replace(['/index.php?s='], '', $url); } return $url; -- GitLab