mirror of
https://github.com/quarkcloudio/quark-go.git
synced 2025-10-04 23:52:48 +08:00
fix: 修复bug
This commit is contained in:
@@ -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)
|
||||
|
@@ -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/"
|
||||
|
Reference in New Issue
Block a user