mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Sign in to use S3/WebDAV data sync https://github.com/siyuan-note/siyuan/issues/8779
This commit is contained in:
parent
11764557ac
commit
c4558c26dd
3 changed files with 45 additions and 24 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue