From 62a1aa985217a379da044ae77cccc068ec92eae9 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Wed, 6 Nov 2024 15:07:09 +0800 Subject: [PATCH] feat : ali --- app/Service/Admin/Third/AliStsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/Admin/Third/AliStsService.php b/app/Service/Admin/Third/AliStsService.php index 9d80628..667b7c0 100644 --- a/app/Service/Admin/Third/AliStsService.php +++ b/app/Service/Admin/Third/AliStsService.php @@ -96,7 +96,7 @@ class AliStsService extends BaseService $res = $this->getAliStsControls($payload); $this->log->info(__CLASS__.':'.__FUNCTION__.':授权oss信息:'.json_encode($res)); - $aliResponse = $res->body['credentials']; + $aliResponse = $res->body['credentials'] ?? []; if (empty($aliResponse)) throw new AdminException('授权失败'); return $this->return->success('success',[