From e58502f0be25fd68c919bacb3645fb136830bfaf Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Wed, 4 Aug 2021 15:28:58 +0800 Subject: [PATCH] add platform Vercel --- common.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common.php b/common.php index dbf58a2..defc676 100644 --- a/common.php +++ b/common.php @@ -1512,9 +1512,11 @@ function EnvOpt($needUpdate = 0) $canOneKeyUpate = 1; } elseif (isset($_SERVER['FC_SERVER_PATH'])&&$_SERVER['FC_SERVER_PATH']==='/var/fc/runtime/php7.2') { $canOneKeyUpate = 1; - } elseif ($_SERVER['BCE_CFC_RUNTIME_NAME']=='php7') { + } elseif (isset($_SERVER['BCE_CFC_RUNTIME_NAME'])&&$_SERVER['BCE_CFC_RUNTIME_NAME']=='php7') { $canOneKeyUpate = 1; - } elseif ($_SERVER['_APP_SHARE_DIR']==='/var/share/CFF/processrouter') { + } elseif (isset($_SERVER['_APP_SHARE_DIR'])&&$_SERVER['_APP_SHARE_DIR']==='/var/share/CFF/processrouter') { + $canOneKeyUpate = 1; + } elseif (isset($_SERVER['DOCUMENT_ROOT'])&&$_SERVER['DOCUMENT_ROOT']==='/var/task/user') { $canOneKeyUpate = 1; } else { $tmp = time();