检查域名是否存在时同时检查泛域名

This commit is contained in:
GoEdgeLab
2022-09-17 11:38:47 +08:00
parent fb8c8ef643
commit ae0bfd368a
2 changed files with 36 additions and 5 deletions

View File

@@ -1707,9 +1707,9 @@ func (this *ServerService) CheckServerNameDuplicationInNodeCluster(ctx context.C
var tx = this.NullTx()
duplicatedServerNames := []string{}
var duplicatedServerNames = []string{}
for _, serverName := range req.ServerNames {
exist, err := models.SharedServerDAO.ExistServerNameInCluster(tx, req.NodeClusterId, serverName, req.ExcludeServerId)
exist, err := models.SharedServerDAO.ExistServerNameInCluster(tx, req.NodeClusterId, serverName, req.ExcludeServerId, req.SupportWildcard)
if err != nil {
return nil, err
}