From 66005cc84576bd20c3cb532b130206bc0d154fcd Mon Sep 17 00:00:00 2001 From: ExplodingDragon Date: Tue, 25 Nov 2025 00:57:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8=E4=B8=8D=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E9=85=8D=E7=BD=AE=E6=97=B6=E6=8C=87=E5=AE=9A=E4=BA=86?= =?UTF-8?q?=20CNAME=20=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/core/domain.go | 2 +- pkg/core/meta.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/core/domain.go b/pkg/core/domain.go index 50e96c3..db9452b 100644 --- a/pkg/core/domain.go +++ b/pkg/core/domain.go @@ -83,7 +83,7 @@ func (p *PageDomain) returnMeta(ctx context.Context, owner, repo, branch string, result.Owner = owner result.Repo = repo result.Path = strings.Join(path, "/") - + // todo: 优化保存逻辑 ,减少写入 if err = p.alias.Bind(ctx, meta.Alias, result.Owner, result.Repo, branch); err != nil { zap.L().Warn("alias binding error.", zap.Error(err)) return nil, err diff --git a/pkg/core/meta.go b/pkg/core/meta.go index 02b48d6..5e4db20 100644 --- a/pkg/core/meta.go +++ b/pkg/core/meta.go @@ -180,6 +180,7 @@ func (s *ServerMeta) parsePageConfig(ctx context.Context, meta *PageMetaContent, "targets": alias, }, }) + meta.Alias = alias } return nil // 配置文件不存在不是错误 }