From 2fdf2b937827b9d19860c2a49b0790ab78b35e05 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Sun, 8 Oct 2023 22:52:18 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E8=AF=81=E4=B9=A6=20H?= =?UTF-8?q?TTP=20=E6=A8=A1=E5=BC=8F=E4=B8=8B=E4=BF=9D=E5=AD=98=E4=BA=86?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=95=B0=E6=8D=AE=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20(#2476)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/2473 --- backend/app/service/website_ssl.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/app/service/website_ssl.go b/backend/app/service/website_ssl.go index 2c12b856b..c398eef05 100644 --- a/backend/app/service/website_ssl.go +++ b/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, ",")