mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +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
|
|
@ -64,6 +64,7 @@ func Widgets() (widgets []*Widget) {
|
|||
logging.LogErrorf("get bazaar package [%s] failed: %d", innerU, innerResp.StatusCode)
|
||||
return
|
||||
}
|
||||
widget.URL = strings.TrimSuffix(widget.URL, "/")
|
||||
|
||||
repoURLHash := strings.Split(repoURL, "@")
|
||||
widget.RepoURL = "https://github.com/" + repoURLHash[0]
|
||||
|
|
@ -123,6 +124,7 @@ func InstalledWidgets() (ret []*Widget) {
|
|||
widget.Name = widgetConf["name"].(string)
|
||||
widget.Author = widgetConf["author"].(string)
|
||||
widget.URL = widgetConf["url"].(string)
|
||||
widget.URL = strings.TrimSuffix(widget.URL, "/")
|
||||
widget.Version = widgetConf["version"].(string)
|
||||
widget.RepoURL = widget.URL
|
||||
widget.PreviewURL = "/widgets/" + dirName + "/preview.png"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue