chore: update backup

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

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 {