Merge branch release/21.7.7 of zentao/zentaopms (#12154)

This commit is contained in:
刘刚
2025-11-04 10:19:35 +08:00
committed by Gitfox
+4 -2
View File
@@ -13,7 +13,7 @@
*/
/* Set the error reporting. */
error_reporting(0);
define('RUN_MODE', 'api');
/* Start output buffer. */
ob_start();
@@ -37,6 +37,8 @@ $common = $app->loadCommon();
$config->requestType = 'GET';
$config->default->view = 'json';
/* Only has the api version then use apisession. Fix for passwordless login. */
if($app->apiVersion) define('RUN_MODE', 'api');
try
{
$app->parseRequest();
@@ -59,4 +61,4 @@ catch (EndResponseException $endResponseException)
}
/* Flush the buffer. */
echo $app->formatData(helper::removeUTF8Bom(ob_get_clean()));
echo $app->formatData(helper::removeUTF8Bom(ob_get_clean()));