diff --git a/pkg/app/model/file.go b/pkg/app/model/file.go index c5ec75a..4b16d55 100644 --- a/pkg/app/model/file.go +++ b/pkg/app/model/file.go @@ -131,9 +131,9 @@ func (model *File) GetPaths(id interface{}) []string { err := json.Unmarshal([]byte(getId), &jsonData) if err == nil { for _, v := range jsonData { - path = v["path"].(string) + path = v["url"].(string) if strings.Contains(path, "//") { - paths = append(paths, v["path"].(string)) + paths = append(paths, v["url"].(string)) } else { if strings.Contains(path, "./") { path = strings.Replace(path, "./website/", "/", -1) diff --git a/pkg/builder/engine.go b/pkg/builder/engine.go index 472e654..d5c4fb4 100644 --- a/pkg/builder/engine.go +++ b/pkg/builder/engine.go @@ -19,7 +19,7 @@ const ( AppName = "QuarkGo" // Version of current package - Version = "1.1.49" + Version = "1.1.50" // 静态文件URL RespositoryURL = "https://github.com/quarkcms/quark-go/tree/main/website/"