feat : ali

This commit is contained in:
2024-11-06 15:25:29 +08:00
parent 69b91f35f3
commit efbc987277

View File

@@ -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;
}
}
}