优化ctms-api语法、修复已知BUG;

主要修复ctms-api、dacms对PHP新版本的支持问题
This commit is contained in:
2025-07-13 19:37:42 +08:00
parent 65bbd06981
commit 037f274ec5
413 changed files with 107271 additions and 72326 deletions
+9 -1
View File
@@ -1,2 +1,10 @@
<?php
Yii::setAlias('@backend', dirname(__DIR__));
# @Author: 嗨噜客(三亚) <fm453>
# @Date: 2021-03-25T10:36:00+08:00
# @Email: 1280880631@qq.com
# @Last modified by: fm453
# @Last modified time: 2024-08-09T09:09:28+08:00
# @Copyright: www.hiluker.cn
Yii::setAlias('@api', dirname(__DIR__));
+2 -2
View File
@@ -4,7 +4,7 @@
# @Date: 1970-01-01T08:00:00+08:00
# @Email: fm43@hiluker.com
# @Last modified by: fm453
# @Last modified time: 2024-07-09T17:19:59+08:00
# @Last modified time: 2024-08-09T08:21:21+08:00
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
@@ -20,7 +20,7 @@ $params = array_merge(
$config = [
'id' => 'api-ctms-backend',
'basePath' => dirname(__DIR__),
'controllerNamespace' => 'backend\controllers',
'controllerNamespace' => 'api\controllers',
'defaultRoute' => 'index', //默认路由
'bootstrap' => ['log'],
'modules' => [