2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 10:17:17 +08:00

feat: 网站列表添加域名直接打开

This commit is contained in:
2026-01-26 18:14:40 +08:00
parent d87a9e3f02
commit 197781e722
4 changed files with 75 additions and 5 deletions

View File

@@ -263,6 +263,12 @@ func (r *websiteRepo) List(typ string, page, limit uint) ([]*biz.Website, int64,
if website.Type == biz.WebsiteTypePHP {
website.PHP = r.getPHPVersion(website.Name)
}
// 获取域名
if vhost, err := r.getVhost(website); err == nil {
if domains, err := punycode.DecodeDomains(vhost.ServerName()); err == nil {
website.Domains = domains
}
}
}
return websites, total, nil