This commit is contained in:
Daniel 2023-07-19 12:15:37 +08:00
parent 11764557ac
commit c4558c26dd
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 45 additions and 24 deletions

View file

@ -229,8 +229,19 @@ func checkSync(boot, exit, byHand bool) bool {
return false
}
if !IsSubscriber() && conf.ProviderSiYuan == Conf.Sync.Provider {
return false
switch Conf.Sync.Provider {
case conf.ProviderSiYuan:
if !IsSubscriber() {
return false
}
case conf.ProviderWebDAV:
if !IsThirdPartySyncPaid() {
return false
}
case conf.ProviderS3:
if !IsThirdPartySyncPaid() {
return false
}
}
if util.IsMutexLocked(&syncLock) {