feat : ali
This commit is contained in:
@@ -48,11 +48,11 @@ trait AliStsTrait
|
||||
/**
|
||||
* 获取 ali sts 控制器
|
||||
* @param $payload
|
||||
* @return AssumeRoleResponse
|
||||
* @return AssumeRoleResponse|false
|
||||
* @throws ContainerExceptionInterface
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function getAliStsControls($payload): AssumeRoleResponse
|
||||
public function getAliStsControls($payload): AssumeRoleResponse|false
|
||||
{
|
||||
$client = $this->createClient();
|
||||
$assumeRoleRequest = new AssumeRoleRequest($payload);
|
||||
@@ -63,6 +63,7 @@ trait AliStsTrait
|
||||
return $res;
|
||||
} catch (Exception $error) {
|
||||
$this->log->error(__CLASS__.'-'.__FUNCTION__.'-'.__LINE__.':'.$error->getMessage());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user