core/viper.go
@@ -5,14 +5,12 @@ "fmt" "github.com/gin-gonic/gin" "os" "path/filepath" "srm/core/internal" "github.com/fsnotify/fsnotify" "github.com/spf13/viper" "srm/global" _ "srm/packfile" ) // Viper // @@ -68,7 +66,5 @@ fmt.Println(err) } // root 适配性 根据root位置去找到对应迁移位置,保证root路径有效 global.GVA_CONFIG.AutoCode.Root, _ = filepath.Abs("..") return v }