新增部分公共方法

feat/task1-c-wallet
Devil 2021-05-26 19:54:10 +08:00
parent 4a7beb0bc7
commit 7d1da07086
1 changed files with 2 additions and 2 deletions

View File

@ -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;