Merge pull request #4 from HanadaLee/aliyunossdeploy

修复部署证书到阿里云OSS失败
This commit is contained in:
Hanada 2025-05-12 02:30:19 +08:00 committed by GitHub
commit 994bdc7fa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -236,7 +236,7 @@ class aliyun implements DeployInterface
if (empty($config['oss_endpoint'])) throw new Exception('OSS Endpoint不能为空');
if (empty($config['oss_bucket'])) throw new Exception('OSS Bucket不能为空');
$client = new AliyunOSS($this->AccessKeyId, $this->AccessKeySecret, $config['oss_endpoint']);
$client->addBucketCnameCert($config['oss_bucket'], $config['domain'], $cert_id);
$client->addBucketCnameCert($config['oss_bucket'], $config['domain'], $cert_id . '-cn-hangzhou');
$this->log('OSS域名 ' . $config['domain'] . ' 部署证书成功!');
}