From 123a918ce7689b5f1dfbfd1b423d85556d628ed7 Mon Sep 17 00:00:00 2001 From: Gosowong <1329847115@qq.com> Date: Thu, 8 Jun 2023 18:49:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=A1=B6=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/system/config/SystemStorageServices.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crmeb/app/services/system/config/SystemStorageServices.php b/crmeb/app/services/system/config/SystemStorageServices.php index 381b2d2b2..bce4921c8 100644 --- a/crmeb/app/services/system/config/SystemStorageServices.php +++ b/crmeb/app/services/system/config/SystemStorageServices.php @@ -189,7 +189,10 @@ class SystemStorageServices extends BaseServices try { $upload = UploadService::init($storageInfo->type); - $upload->deleteBucket($storageInfo->name, $storageInfo->region); + $res = $upload->deleteBucket($storageInfo->name, $storageInfo->region); + if (false === $res) { + throw new AdminException($upload->getError()); + } } catch (\Throwable $e) { throw new AdminException($e->getMessage()); }