From a18eb9f9f6184e606b4ff6723bbbfe5213c459e4 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 6 Aug 2020 10:46:11 +0800 Subject: [PATCH] SCF:select save in env or file --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 8917805..cd6fa0c 100644 --- a/index.php +++ b/index.php @@ -6,7 +6,8 @@ include 'common.php'; //echo '
'. json_encode($_SERVER, JSON_PRETTY_PRINT).''; if (isset($_SERVER['USER'])&&$_SERVER['USER']==='qcloud') { - include 'platform/TencentSCF.php'; + if (getenv('ONEMANAGER_CONFIG_SAVE')=='file') include 'platform/TencentSCF_file.php'; + else include 'platform/TencentSCF_env.php'; } elseif (isset($_SERVER['FC_SERVER_PATH'])&&$_SERVER['FC_SERVER_PATH']==='/var/fc/runtime/php7.2') { include 'platform/AliyunFC.php'; } elseif ($_SERVER['_APP_SHARE_DIR']=='/var/share/CFF/processrouter') {