From d7e0cb02cd68780bd51e2a96f84c93a6d8cdeb24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 12 Apr 2025 19:23:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BF=BB=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/data/website.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/data/website.go b/internal/data/website.go index b83e1824..7d387da2 100644 --- a/internal/data/website.go +++ b/internal/data/website.go @@ -266,7 +266,7 @@ func (r *websiteRepo) Create(req *request.WebsiteCreate) (*biz.Website, error) { } includes = append(includes, filepath.Join(app.Root, "server/vhost/rewrite", req.Name+".conf")) includes = append(includes, filepath.Join(app.Root, "server/vhost/acme", req.Name+".conf")) - comments = append(comments, []string{r.t.Get("# 伪静态规则")}) + comments = append(comments, []string{r.t.Get("# Rewrite rule")}) comments = append(comments, []string{"# acme http-01"}) if err = p.SetIncludes(includes, comments); err != nil { return nil, err @@ -632,7 +632,7 @@ func (r *websiteRepo) ResetConfig(id uint) error { } includes = append(includes, filepath.Join(app.Root, "server/vhost/rewrite", website.Name+".conf")) includes = append(includes, filepath.Join(app.Root, "server/vhost/acme", website.Name+".conf")) - comments = append(comments, []string{r.t.Get("# 伪静态规则")}) + comments = append(comments, []string{r.t.Get("# Rewrite rule")}) comments = append(comments, []string{"# acme http-01"}) if err = p.SetIncludes(includes, comments); err != nil { return err