mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 12:58:48 +01:00
🐛 集市更新获取不同步的问题 Fix https://github.com/siyuan-note/siyuan/issues/7775
This commit is contained in:
parent
1366063ac8
commit
bf29561686
4 changed files with 8 additions and 0 deletions
|
|
@ -63,6 +63,7 @@ func Icons() (icons []*Icon) {
|
|||
logging.LogErrorf("get bazaar package [%s] failed: %d", innerU, innerResp.StatusCode)
|
||||
return
|
||||
}
|
||||
icon.URL = strings.TrimSuffix(icon.URL, "/")
|
||||
|
||||
repoURLHash := strings.Split(repoURL, "@")
|
||||
icon.RepoURL = "https://github.com/" + repoURLHash[0]
|
||||
|
|
@ -125,6 +126,7 @@ func InstalledIcons() (ret []*Icon) {
|
|||
icon.Name = iconConf["name"].(string)
|
||||
icon.Author = iconConf["author"].(string)
|
||||
icon.URL = iconConf["url"].(string)
|
||||
icon.URL = strings.TrimSuffix(icon.URL, "/")
|
||||
icon.Version = iconConf["version"].(string)
|
||||
icon.RepoURL = icon.URL
|
||||
icon.PreviewURL = "/appearance/icons/" + dirName + "/preview.png"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue