chore: update backup

This commit is contained in:
henry.chen committed 2025-07-17 10:52:43 +08:00
1 parent a0b41d08bd
commit be0280ac56
7 files changed
+189 -153

No files matched your search

+2 -2
View File
@@ -35,11 +35,11 @@ func init() {
logrus.Infof("Run mode:%s", mode)
// 加载配置文件
dir, err := config.WalkWorkDir()
etc, err := config.WorkEtcPath()
if err != nil {
panic(err)
}
path := filepath.Join(dir, "etc", "app.yml")
path := filepath.Join(etc, "app.yml")
data, err := os.ReadFile(path)
if err != nil {