From d087811ae3690335feec905f07e6043d476a76fe Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Mon, 4 Dec 2023 15:46:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BD=91=E7=AB=99=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=9B=B8=E5=90=8C=E5=9F=9F=E5=90=8D=E4=B8=8D?= =?UTF-8?q?=E5=90=8C=E7=AB=AF=E5=8F=A3=20(#3165)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs https://github.com/1Panel-dev/1Panel/issues/2964 --- backend/app/service/website.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/backend/app/service/website.go b/backend/app/service/website.go index 7616db638..bc598c4d1 100644 --- a/backend/app/service/website.go +++ b/backend/app/service/website.go @@ -173,9 +173,6 @@ func (w WebsiteService) CreateWebsite(create request.WebsiteCreate) (err error) primaryDomainArray := strings.Split(create.PrimaryDomain, ":") primaryDomain := primaryDomainArray[0] - if exist, _ := websiteRepo.GetBy(websiteRepo.WithDomain(primaryDomain)); len(exist) > 0 { - return buserr.New(constant.ErrDomainIsExist) - } if exist, _ := websiteRepo.GetBy(websiteRepo.WithAlias(create.Alias)); len(exist) > 0 { return buserr.New(constant.ErrAliasIsExist) }