feat : ali
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user