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

feat: 一键签发证书支持自动同步域名

This commit is contained in:
耗子
2024-10-26 13:13:29 +08:00
parent a65bcf582a
commit 2970aaaa47

View File

@@ -717,6 +717,10 @@ func (r *websiteRepo) ObtainCert(ctx context.Context, id uint) error {
return err
}
}
newCert.Domains = website.Domains
if err = app.Orm.Save(newCert).Error; err != nil {
return err
}
_, err = cRepo.ObtainAuto(newCert.ID)
if err != nil {