feat : ali
This commit is contained in:
@@ -58,7 +58,9 @@ trait AliStsTrait
|
|||||||
$assumeRoleRequest = new AssumeRoleRequest($payload);
|
$assumeRoleRequest = new AssumeRoleRequest($payload);
|
||||||
$runtime = new RuntimeOptions([]);
|
$runtime = new RuntimeOptions([]);
|
||||||
try {
|
try {
|
||||||
return $client->assumeRoleWithOptions($assumeRoleRequest, $runtime);
|
$res = $client->assumeRoleWithOptions($assumeRoleRequest, $runtime);
|
||||||
|
date_default_timezone_set('Asia/Shanghai');
|
||||||
|
return $res;
|
||||||
} catch (Exception $error) {
|
} catch (Exception $error) {
|
||||||
$this->log->error(__CLASS__.'-'.__FUNCTION__.'-'.__LINE__.':'.$error->getMessage());
|
$this->log->error(__CLASS__.'-'.__FUNCTION__.'-'.__LINE__.':'.$error->getMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user