Merge branch 'main' into main

This commit is contained in:
RHQYZ 2024-10-15 21:30:16 +08:00 committed by GitHub
commit a4d1c9a7c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

View File

@ -98,7 +98,8 @@ func (t *tencentCdn) deploy(certId string) error {
request.Status = common.Int64Ptr(1)
// 如果是泛域名就从cdn列表下获取SSL证书中的可用域名
if strings.Contains(t.option.Domain, "*") {
domain := getDeployString(t.option.DeployConfig, "domain")
if strings.Contains(domain, "*") {
list, errGetList := t.getDomainList()
if errGetList != nil {
return fmt.Errorf("failed to get certificate domain list: %w", errGetList)
@ -108,7 +109,7 @@ func (t *tencentCdn) deploy(certId string) error {
}
request.InstanceIdList = common.StringPtrs(list)
} else { // 否则直接使用传入的域名
request.InstanceIdList = common.StringPtrs([]string{t.option.Domain})
request.InstanceIdList = common.StringPtrs([]string{domain})
}
// 返回的resp是一个DeployCertificateInstanceResponse的实例与请求对象对应

1
ui/dist/index.html vendored
View File

@ -10,5 +10,6 @@
</head>
<body class="bg-background">
<div id="root"></div>
</body>
</html>