Skip to content

Commit

Permalink
【优化】【实时推送】RemoteStorage/RemoteServer/LocalBackup/RemoteBackup
Browse files Browse the repository at this point in the history
1. 实时推送判断逻辑优化
  • Loading branch information
RainyGao-GitHub committed Oct 9, 2023
1 parent a37baf9 commit 41a4cfe
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/com/DocSystem/controller/BaseController.java
Original file line number Diff line number Diff line change
Expand Up @@ -23004,10 +23004,19 @@ public void run() {
}

//远程自动推送
realTimeRemoteStoragePush(repos, doc, null, user, commitMsg, rt, action.event);
if(isRemoteStoragePushEnabled(repos))
{
realTimeRemoteStoragePush(repos, doc, null, user, commitMsg, rt, action.event);
}
//仓库自动备份
realTimeBackup(repos, doc, null, user, commitMsg, rt, action.event);

if(isLocalBackupPushEnabled(repos))
{
realTimeLocalBackup(repos, doc, null, user, commitMsg, rt, action.event);
}
if(isRemoteBackupPushEnabled(repos))
{
realTimeRemoteBackup(repos, doc, null, user, commitMsg, rt, action.event);
}
//解锁目录
unlockDoc(doc, lockType, user);

Expand Down

0 comments on commit 41a4cfe

Please sign in to comment.