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 控制器 * 获取 ali sts 控制器
* @param $payload * @param $payload
* @return AssumeRoleResponse * @return AssumeRoleResponse|false
* @throws ContainerExceptionInterface * @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface * @throws NotFoundExceptionInterface
*/ */
public function getAliStsControls($payload): AssumeRoleResponse public function getAliStsControls($payload): AssumeRoleResponse|false
{ {
$client = $this->createClient(); $client = $this->createClient();
$assumeRoleRequest = new AssumeRoleRequest($payload); $assumeRoleRequest = new AssumeRoleRequest($payload);
@@ -63,6 +63,7 @@ trait AliStsTrait
return $res; return $res;
} catch (Exception $error) { } catch (Exception $error) {
$this->log->error(__CLASS__.'-'.__FUNCTION__.'-'.__LINE__.':'.$error->getMessage()); $this->log->error(__CLASS__.'-'.__FUNCTION__.'-'.__LINE__.':'.$error->getMessage());
return false;
} }
} }
} }