feat : sts

This commit is contained in:
2025-04-11 16:49:41 +08:00
parent 7013ba64ba
commit 5f05e0361e
2 changed files with 2 additions and 2 deletions

View File

@@ -96,8 +96,8 @@ class AliStsService extends BaseService
$res = $this->getAliStsControls($payload); $res = $this->getAliStsControls($payload);
$this->log->info(__CLASS__.':'.__FUNCTION__.':授权oss信息:'.json_encode($res)); $this->log->info(__CLASS__.':'.__FUNCTION__.':授权oss信息:'.json_encode($res));
if (empty($res) || empty($res->body->credentials)) throw new ErrException('授权失败');
$aliResponse = $res->body->credentials; $aliResponse = $res->body->credentials;
if (empty($aliResponse)) throw new ErrException('授权失败');
return $this->return->success('success',[ return $this->return->success('success',[
'access_key_id' => $aliResponse->accessKeyId, 'access_key_id' => $aliResponse->accessKeyId,

View File

@@ -98,8 +98,8 @@ class AliStsService extends BaseService
$res = $this->getAliStsControls($payload); $res = $this->getAliStsControls($payload);
$this->log->info(__CLASS__.':'.__FUNCTION__.':授权oss信息:'.json_encode($res)); $this->log->info(__CLASS__.':'.__FUNCTION__.':授权oss信息:'.json_encode($res));
if (empty($res) || empty($res->body->credentials)) throw new ErrException('授权失败');
$aliResponse = $res->body->credentials; $aliResponse = $res->body->credentials;
if (empty($aliResponse)) throw new ErrException('授权失败');
return $this->return->success('success',[ return $this->return->success('success',[
'access_key_id' => $aliResponse->accessKeyId, 'access_key_id' => $aliResponse->accessKeyId,