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

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

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

Loading…
Cancel
Save