* [apiv2] Fix createLink

This commit is contained in:
朱金勇
2025-10-14 16:14:33 +08:00
committed by Gitfox
parent ee103788a1
commit af0a271ae7
+1 -2
View File
@@ -203,12 +203,11 @@ class helper extends baseHelper
{
global $config;
$link = parent::createLink($moduleName, $methodName, $vars, $viewType);
$pos = strpos((string) $link, '.php');
/* The requestTypes are: GET, PATH_INFO2, PATH_INFO */
if($config->requestType == 'GET')
{
$link = $config->webRoot . 'index' . substr((string) $link, $pos);
$link = $config->webRoot . (string) substr($link, 2);
}
elseif($config->requestType == 'PATH_INFO2')
{