diff --git a/web/utils/site.py b/web/utils/site.py index 7275dca7b..8026f5edf 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -2266,8 +2266,8 @@ location ^~ {from} {\n\ import tldextract extracted = tldextract.extract(domain) # 组合注册域名和顶级域名 - return "{extracted.domain}.{extracted.suffix}" - + return f"{extracted.domain}.{extracted.suffix}" + def getDomainRootName_Old(self, domain): s = domain.split('.') count = len(s)