This commit is contained in:
Liang Ding 2022-07-17 12:22:32 +08:00
parent c8ea858976
commit 505b973c2d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
70 changed files with 671 additions and 942 deletions

View file

@ -21,6 +21,7 @@ import (
"time"
"github.com/siyuan-note/httpclient"
"github.com/siyuan-note/logging"
)
var cachedRhyResult = map[string]interface{}{}
@ -39,7 +40,7 @@ func GetRhyResult(force bool) (map[string]interface{}, error) {
request := httpclient.NewCloudRequest()
_, err := request.SetResult(&cachedRhyResult).Get(AliyunServer + "/apis/siyuan/version?ver=" + Ver)
if nil != err {
LogErrorf("get version info failed: %s", err)
logging.LogErrorf("get version info failed: %s", err)
return nil, err
}
rhyResultCacheTime = now