From 58482e88c5f02d8764f158db797bb7626412683c Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Mon, 22 Mar 2021 22:46:14 +0800 Subject: [PATCH] fix: SCF Region --- platform/TencentSCF_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/TencentSCF_file.php b/platform/TencentSCF_file.php index 3957928..2331d8c 100644 --- a/platform/TencentSCF_file.php +++ b/platform/TencentSCF_file.php @@ -30,7 +30,7 @@ function GetPathSetting($event, $context) $_SERVER['firstacceptlanguage'] = strtolower(splitfirst(splitfirst($event['headers']['accept-language'],';')[0],',')[0]); $_SERVER['function_name'] = $context['function_name']; $_SERVER['namespace'] = $context['namespace']; - $_SERVER['Region'] = getenv('TENCENTCLOUD_REGION'); + $_SERVER['Region'] = $context['tencentcloud_region']; $host_name = $event['headers']['host']; $_SERVER['HTTP_HOST'] = $host_name; $serviceId = $event['requestContext']['serviceId']; -- GitLab