diff --git a/common.php b/common.php index 844b202..13aa821 100644 --- a/common.php +++ b/common.php @@ -1403,6 +1403,7 @@ function EnvOpt($needUpdate = 0) global $timezones; global $slash; global $drive; + global $platform; ksort($EnvConfigs); $disktags = explode('|', getConfig('disktag')); $envs = ''; diff --git a/index.php b/index.php index f22a386..b409fab 100644 --- a/index.php +++ b/index.php @@ -140,6 +140,7 @@ function main_handler($event, $context) // Aliyun FC & Huawei FG & Baidu CFC function handler($event, $context) { + global $platform; if ('FC'==$platform) { // Aliyun FC set_error_handler("myErrorHandler");