* [apiv2] Fix createLink: use index.php
This commit is contained in:
@@ -107,11 +107,7 @@ class baseHelper
|
||||
}
|
||||
|
||||
/* 生成url链接的开始部分。Set the begin parts of the link. */
|
||||
if($app->apiVersion == 'v2')
|
||||
{
|
||||
$link = $config->webRoot . '/api.php/v2/';
|
||||
}
|
||||
elseif($config->requestType == 'PATH_INFO2')
|
||||
if($config->requestType == 'PATH_INFO2')
|
||||
{
|
||||
$link = '/';
|
||||
}
|
||||
@@ -119,6 +115,10 @@ class baseHelper
|
||||
{
|
||||
$link = $config->webRoot . $appName;
|
||||
}
|
||||
elseif($app->apiVersion)
|
||||
{
|
||||
$link = $config->webRoot . 'index.php';
|
||||
}
|
||||
else
|
||||
{
|
||||
$link = $config->webRoot . $appName . basename((string) $_SERVER['SCRIPT_NAME']);
|
||||
|
||||
Reference in New Issue
Block a user