Browse Source

fix: 解决证书 HTTP 模式下保存了错误数据的问题 (#2476)

Refs https://github.com/1Panel-dev/1Panel/issues/2473
pull/2479/head
zhengkunwang 1 year ago committed by GitHub
parent
commit
2fdf2b9378
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      backend/app/service/website_ssl.go

4
backend/app/service/website_ssl.go

@ -135,7 +135,9 @@ func (w WebsiteSSLService) Create(create request.WebsiteSSLCreate) (request.Webs
return res, err
}
websiteSSL.DnsAccountID = create.DnsAccountID
if create.Provider == constant.DNSAccount {
websiteSSL.DnsAccountID = create.DnsAccountID
}
websiteSSL.AcmeAccountID = acmeAccount.ID
websiteSSL.Provider = create.Provider
websiteSSL.Domains = strings.Join(otherDomainArray, ",")

Loading…
Cancel
Save