From 91347642278ee7247a0efa495832092db6f66327 Mon Sep 17 00:00:00 2001 From: Gosowong <1329847115@qq.com> Date: Tue, 6 Jun 2023 14:17:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E4=BA=AC=E4=B8=9C?= =?UTF-8?q?=E4=BA=91=E8=8E=B7=E5=8F=96=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/crmeb/services/upload/storage/Jdoss.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crmeb/crmeb/services/upload/storage/Jdoss.php b/crmeb/crmeb/services/upload/storage/Jdoss.php index b0efc4297..1bacc7354 100644 --- a/crmeb/crmeb/services/upload/storage/Jdoss.php +++ b/crmeb/crmeb/services/upload/storage/Jdoss.php @@ -287,7 +287,14 @@ class Jdoss extends BaseUpload public function getDomian(string $name, string $region = null) { - + try { + $res = $this->app()->getBucketWebsite([ + 'Bucket' => $name + ]); + return $res['DomainName'] ?? []; + } catch (\Throwable $e) { + return $this->setError($e->getMessage()); + } } public function bindDomian(string $name, string $domain, string $region = null)