From 3de4f2bfde0962cd9f28585e2a0e326d3d8f0cf4 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Sun, 16 Apr 2023 17:07:29 +0800 Subject: [PATCH] Update HuaweiFG_env.php --- platform/HuaweiFG_env.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/HuaweiFG_env.php b/platform/HuaweiFG_env.php index 83d6451..f2ecf6b 100644 --- a/platform/HuaweiFG_env.php +++ b/platform/HuaweiFG_env.php @@ -6,7 +6,7 @@ global $contextUserData; function printInput($event, $context) { - $tmp['eventID'] = $context->geteventID(); + $tmp['RequestID'] = $context->getRequestID(); $tmp['RemainingTimeInMilliSeconds'] = $context->getRemainingTimeInMilliSeconds(); $tmp['AccessKey'] = $context->getAccessKey(); $tmp['SecretKey'] = $context->getSecretKey(); @@ -17,7 +17,7 @@ function printInput($event, $context) $tmp['MemorySize'] = $context->getMemorySize(); $tmp['CPUNumber'] = $context->getCPUNumber(); $tmp['ProjectID'] = $context->getProjectID(); - $tmp['Package'] = $context->Package(); + $tmp['Package'] = $context->getPackage(); $tmp['Token'] = $context->getToken(); $tmp['Logger'] = $context->getLogger(); @@ -75,7 +75,7 @@ function GetPathSetting($event, $context) $_SERVER['HTTP_TRANSLATE'] = $event['headers']['translate'];//'f' $_SERVER['HTTP_IF_MODIFIED_SINCE'] = $event['headers']['if-modified-since']; $_SERVER['REQUEST_METHOD'] = $event['httpMethod']; - $_SERVER['_APP_SHARE_DIR'] = '/var/share/CFF/processrouter'; + $_SERVER['RUNTIME_LOG_PATH'] = '/home/snuser/log'; return $path; }