From 5dd7bb970925f1a4d27bc54737d7c2993c37a622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E6=98=8C=E6=B8=85?= <12692718+he-changqing-play@user.noreply.gitee.com> Date: Fri, 27 Mar 2026 13:36:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.go | 2 +- config/default.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.go b/config/config.go index 7a606c0..d88b680 100644 --- a/config/config.go +++ b/config/config.go @@ -88,7 +88,7 @@ func LoadConfig() *Config { // loadConfigFromFile 从配置文件加载配置 func loadConfigFromFile() *Config { // 尝试加载 yaml 配置文件 - if data, err := os.ReadFile("/home/app/quin_admin/default.yaml"); err == nil { + if data, err := os.ReadFile("/home/app/quincy/default.yaml"); err == nil { cfg := &Config{} if err := yaml.Unmarshal(data, cfg); err == nil { return cfg diff --git a/config/default.yaml b/config/default.yaml index 56f7c1c..fb473da 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -5,8 +5,8 @@ server: # JWT配置 jwt: - secret: "admin-test" - expire: 24h + secret: "admin" + expire: 24 # 数据库配置 db: