url模式优化

feat/task1-c-wallet
gongfuxiang 2024-12-31 16:43:21 +08:00
parent 0c8fe001e5
commit 144f0df7ca
1 changed files with 2 additions and 2 deletions

View File

@ -2863,8 +2863,8 @@ function MyUrl($path, $params = [])
// 非index.phpadmin路径并且非index.phpapi路径install路径兼容模式
if($script_name != 'index.php' || ($is_admin && $script_name != 'index.php') || $is_api || $is_install || $url_model == 0)
{
// 仅index端处理为兼容模式
if(!$is_index)
// 仅index端和兼容模式处理为兼容模式
if(!$is_index || $url_model == 0)
{
$url = str_replace($script_name.'/', $script_name.'?s=', $url);
}