mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 10:17:17 +08:00
feat: 网站列表添加域名直接打开
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user