mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-28 18:00:15 +01:00
🐛 集市更新获取不同步的问题 Fix https://github.com/siyuan-note/siyuan/issues/7775
This commit is contained in:
parent
c717f941b8
commit
693945e1bf
4 changed files with 8 additions and 0 deletions
|
|
@ -65,6 +65,7 @@ func Themes() (ret []*Theme) {
|
|||
logging.LogErrorf("get bazaar package [%s] failed: %d", innerU, innerResp.StatusCode)
|
||||
return
|
||||
}
|
||||
theme.URL = strings.TrimSuffix(theme.URL, "/")
|
||||
|
||||
repoURLHash := strings.Split(repoURL, "@")
|
||||
theme.RepoURL = "https://github.com/" + repoURLHash[0]
|
||||
|
|
@ -127,6 +128,7 @@ func InstalledThemes() (ret []*Theme) {
|
|||
theme.Name = themeConf["name"].(string)
|
||||
theme.Author = themeConf["author"].(string)
|
||||
theme.URL = themeConf["url"].(string)
|
||||
theme.URL = strings.TrimSuffix(theme.URL, "/")
|
||||
theme.Version = themeConf["version"].(string)
|
||||
for _, mode := range themeConf["modes"].([]interface{}) {
|
||||
theme.Modes = append(theme.Modes, mode.(string))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue