From 24def8d1ab62796661667c3a805f55ea16e47bd2 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Fri, 20 Aug 2021 10:09:16 +0000 Subject: [PATCH] config save in file default in Vercel --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index f029312..a2d9bd1 100644 --- a/index.php +++ b/index.php @@ -32,7 +32,8 @@ if (isset($_SERVER['USER'])&&$_SERVER['USER']==='qcloud') { http_response_code($re['statusCode']); echo $re['body']; } elseif (isset($_SERVER['DOCUMENT_ROOT'])&&$_SERVER['DOCUMENT_ROOT']==='/var/task/user') { - include 'platform/Vercel.php'; + if (getenv('ONEMANAGER_CONFIG_SAVE')=='env') include 'platform/Vercel_env.php'; + else include 'platform/Vercel.php'; $path = getpath(); //echo 'path:'. $path; $_GET = getGET();