From 00cdf3d5271c993f3c97b2f35bf4bd65bc9f6160 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E9=87=91=E5=8B=87?= Date: Sun, 4 Jan 2026 09:34:12 +0800 Subject: [PATCH] * [apiv2] Fix createLink: use index.php --- framework/base/helper.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/base/helper.class.php b/framework/base/helper.class.php index bed1fda7bd..1d08d96d0d 100644 --- a/framework/base/helper.class.php +++ b/framework/base/helper.class.php @@ -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']);