| | |
| | | await HdlShardLogic.Current.SynchronizeDeleteSharedContent();
|
| | | return 0;
|
| | | }
|
| | | //创建一个空文件
|
| | | var file = System.IO.File.Create(checkFile);
|
| | | file.Close();
|
| | |
|
| | | //暂时不支持成员
|
| | | if (UserCenterResourse.UserInfo.AuthorityNo == 3)
|
| | | {
|
| | | //同步服务器的分享内容
|
| | | await HdlShardLogic.Current.SynchronizeDbSharedContent();
|
| | | //创建一个空文件(标识已经完成同步)
|
| | | var file = System.IO.File.Create(checkFile);
|
| | | file.Close();
|
| | | return 1;
|
| | | }
|
| | |
|
| | |
| | | var data = await HdlBackupLogic.Current.GetBackupListNameFromDB(1);
|
| | | if (data == null)
|
| | | {
|
| | | //异常,删除检测文件
|
| | | System.IO.File.Delete(checkFile);
|
| | | return -1;
|
| | | }
|
| | | if (data.Count == 0)
|
| | | {
|
| | | //同步服务器的分享内容
|
| | | await HdlShardLogic.Current.SynchronizeDbSharedContent();
|
| | | //创建一个空文件(标识已经完成同步)
|
| | | var file = System.IO.File.Create(checkFile);
|
| | | file.Close();
|
| | | return 1;
|
| | | }
|
| | | //自动备份只有一个
|
| | |
| | |
|
| | | //同步服务器的取消了的分享内容
|
| | | await HdlShardLogic.Current.SynchronizeDeleteSharedContent();
|
| | |
|
| | | //创建一个空文件(标识已经完成同步)
|
| | | var file2 = System.IO.File.Create(checkFile);
|
| | | file2.Close();
|
| | |
|
| | | return 1;
|
| | | }
|
| | |
|