mirror of
https://github.com/quarkcloudio/quark-go.git
synced 2025-10-05 07:56:58 +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)
|
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)
|
||||||
|
@@ -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/"
|
||||||
|
Reference in New Issue
Block a user