fix: 修改京东云获取域名

This commit is contained in:
Gosowong 2023-06-06 14:17:37 +08:00
parent fb162f5905
commit 9134764227

View File

@ -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)