提交 c991b23f 编写于 作者: G gongfuxiang

附件接口优化,新增api入口

上级 cb0145c5
......@@ -485,14 +485,7 @@ function PluginsHomeUrl($plugins_name, $plugins_control, $plugins_action, $param
}
// 避免从后台生成url入口错误
$script_name = CurrentScriptName();
if(substr($path, 0, 6) == 'index/')
{
$url = str_replace($script_name, 'index.php', $url);
} elseif(substr($path, 0, 4) == 'api/')
{
$url = str_replace($script_name, 'api.php', $url);
}
$url = str_replace(CurrentScriptName(), 'index.php', $url);
return $url;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册