From 627591194283e2f4c22b0c3e065cb51d7f5ea827 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sat, 20 May 2023 23:00:19 +0800 Subject: [PATCH 1/2] fix --- index.php | 1 + 1 file changed, 1 insertion(+) 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"); From c44677ad5c482641fb6b4c7b032eeb3fa6ecab7e Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sat, 20 May 2023 23:02:47 +0800 Subject: [PATCH 2/2] fix --- common.php | 1 + 1 file changed, 1 insertion(+) 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 = '';