改进非订阅用户集市包下载速度 Fix https://github.com/siyuan-note/siyuan/issues/5779

This commit is contained in:
Liang Ding 2022-09-01 11:53:07 +08:00
parent b0de05da78
commit 00e0f6b7de
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
7 changed files with 21 additions and 25 deletions

View file

@ -127,9 +127,9 @@ func Icons() (icons []*Icon) {
return
}
func InstallIcon(repoURL, repoHash, installPath string, chinaCDN bool, systemID string) error {
func InstallIcon(repoURL, repoHash, installPath string, systemID string) error {
repoURLHash := repoURL + "@" + repoHash
data, err := downloadPackage(repoURLHash, chinaCDN, true, systemID)
data, err := downloadPackage(repoURLHash, true, systemID)
if nil != err {
return err
}