优化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
+21
View File
@@ -0,0 +1,21 @@
<?php
//OK
//TBD uniacid的更复杂逻辑处理,以便平台模式切换
$op = isset($dataGet['op']) ? $dataGet['op'] : 'null';
$ac = isset($dataGet['ac']) ? $dataGet['ac'] : 'null';
$siteId = isset($_FM['apiCert']['siteId']) ? $_FM['apiCert']['siteId'] : 0;
$platid = (isset($dataGet['platid']) && intval($dataGet['platid']) > 0) ? intval($dataGet['platid']) : 0;
//TBD 进一步校验platid是否合法
$platid = (isset($_FM['platid'])) ? $_FM['platid'] : $platid;
$uniacid = (isset($dataGet['uniacid']) && intval($dataGet['uniacid']) > 0) ? intval($dataGet['uniacid']) : 0;
//TBD 进一步校验uniacid是否合法
$uniacid = (isset($_FM['uniacid'])) ? $_FM['uniacid'] : $uniacid;
$shopid = (isset($dataGet['shopid']) && intval($dataGet['shopid']) > 0) ? intval($dataGet['shopid']) : 0;
//TBD 进一步校验shopid是否合法
$shopid = (isset($_FM['shopid'])) ? $_FM['shopid'] : $shopid;