From 936764d7b638365f9f27acd7b1a870e61fc9fd04 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Tue, 22 Sep 2020 19:42:55 +0800 Subject: [PATCH] fix: FC base_path --- platform/AliyunFC.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/AliyunFC.php b/platform/AliyunFC.php index 107f559..3c83298 100644 --- a/platform/AliyunFC.php +++ b/platform/AliyunFC.php @@ -39,7 +39,7 @@ function GetPathSetting($event, $context) $_SERVER['service_name'] = $context['service']['name']; $_SERVER['function_name'] = $context['function']['name']; - $_SERVER['base_path'] = '/'; + $_SERVER['base_path'] = $event['requestURI']; $path = $event['path']; //$path = spurlencode($path, '/');