🎨 Improve the marketplace refresh timer https://github.com/siyuan-note/siyuan/issues/14685

This commit is contained in:
Daniel 2025-05-07 17:43:53 +08:00
parent b35e21587b
commit 9606ef5927
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -60,5 +60,12 @@ func GetRhyResult(force bool) (map[string]interface{}, error) {
}
func RefreshRhyResultJob() {
_, err := GetRhyResult(true)
if nil != err {
// 系统唤醒后可能还没有网络连接,这里等待后再重试
go func() {
time.Sleep(7 * time.Second)
GetRhyResult(true)
}()
}
}