|
@@ -7,7 +7,7 @@
|
|
|
|
|
|
#import "backupsFileManager.h"
|
|
|
#import "cachesFileManager.h"
|
|
|
-
|
|
|
+#import "connectDeviceManager.h"
|
|
|
@implementation backupsFileManager
|
|
|
static backupsFileManager * cur_backupsFileShareInstance = nil;
|
|
|
+(backupsFileManager *)shareInstance;
|
|
@@ -33,6 +33,20 @@ static backupsFileManager * cur_backupsFileShareInstance = nil;
|
|
|
return self;
|
|
|
}
|
|
|
|
|
|
+- (void)AutohandlePhotosBackupsFun
|
|
|
+{
|
|
|
+ NSString *curSdnId = [connectDeviceManager shareInstance].DeviceThirdIdMod.data.sdnId;
|
|
|
+ if(!_sdnId || ![curSdnId isEqualToString:_sdnId])
|
|
|
+ {//没有备份过 或者更换设备了
|
|
|
+ _sdnId = curSdnId;
|
|
|
+ [self AutohandlePhotosBackupsFun];
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ [self checkReBackupsFileFun];
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
- (void)handlePhotosBackupsFun
|
|
|
{
|
|
|
BOOL haveOpenBackups = [HWDataManager getBoolWithKey:Const_photo_backups_state];
|
|
@@ -155,6 +169,7 @@ static backupsFileManager * cur_backupsFileShareInstance = nil;
|
|
|
_curPhotosBackupsTaskMod.curBackupsState = backupsStateDone;
|
|
|
[self RefreshDatabaseFun];
|
|
|
[self changeBackupsFileStateWithSpeedFun];
|
|
|
+ _curPhotosBackupsTaskMod = nil;
|
|
|
return;
|
|
|
}
|
|
|
|