fix: 修复bug

This commit is contained in:
tangtanglove
2023-04-01 13:21:25 +08:00
parent 05cea30fa9
commit e255cff23e
2 changed files with 3 additions and 3 deletions

View File

@@ -131,9 +131,9 @@ func (model *File) GetPaths(id interface{}) []string {
err := json.Unmarshal([]byte(getId), &jsonData) err := json.Unmarshal([]byte(getId), &jsonData)
if err == nil { if err == nil {
for _, v := range jsonData { for _, v := range jsonData {
path = v["path"].(string) path = v["url"].(string)
if strings.Contains(path, "//") { if strings.Contains(path, "//") {
paths = append(paths, v["path"].(string)) paths = append(paths, v["url"].(string))
} else { } else {
if strings.Contains(path, "./") { if strings.Contains(path, "./") {
path = strings.Replace(path, "./website/", "/", -1) path = strings.Replace(path, "./website/", "/", -1)

View File

@@ -19,7 +19,7 @@ const (
AppName = "QuarkGo" AppName = "QuarkGo"
// Version of current package // Version of current package
Version = "1.1.49" Version = "1.1.50"
// 静态文件URL // 静态文件URL
RespositoryURL = "https://github.com/quarkcms/quark-go/tree/main/website/" RespositoryURL = "https://github.com/quarkcms/quark-go/tree/main/website/"