From 65be5781b8e41a1832e7107a448f7edc86081e80 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Wed, 6 Nov 2024 15:13:26 +0800 Subject: [PATCH] feat : ali --- app/Service/ServiceTrait/Common/AliStsTrait.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Service/ServiceTrait/Common/AliStsTrait.php b/app/Service/ServiceTrait/Common/AliStsTrait.php index b6978a9..a82b7de 100644 --- a/app/Service/ServiceTrait/Common/AliStsTrait.php +++ b/app/Service/ServiceTrait/Common/AliStsTrait.php @@ -58,7 +58,9 @@ trait AliStsTrait $assumeRoleRequest = new AssumeRoleRequest($payload); $runtime = new RuntimeOptions([]); try { - return $client->assumeRoleWithOptions($assumeRoleRequest, $runtime); + $res = $client->assumeRoleWithOptions($assumeRoleRequest, $runtime); + date_default_timezone_set('Asia/Shanghai'); + return $res; } catch (Exception $error) { $this->log->error(__CLASS__.'-'.__FUNCTION__.'-'.__LINE__.':'.$error->getMessage()); }