瀏覽代碼

下载处理

huangxiaodong 1 年之前
父節點
當前提交
9df3d0dc53

+ 1 - 1
创维盒子/双子星云手机/Class/Set/uploadFile/uploadFileManager/backupsFileManager.m

@@ -261,7 +261,7 @@ static backupsFileManager * cur_backupsFileShareInstance = nil;
 - (void)backupsFileDoneFun
 {
     [self deleteVideoFun];
-    _curPhotosBackupsTaskMod.didBackupsCount +=1;
+    _curPhotosBackupsTaskMod.didBackupsCount += 1;
     [self RefreshDatabaseFun];
     [self beginBackupsFileFun];
     

+ 3 - 6
创维盒子/双子星云手机/Class/Set/uploadFile/uploadFileManager/downloadManager.m

@@ -195,23 +195,20 @@ static downloadManager * cur_downloadManager = nil;
 //    NSString *fileName = [_curDownloadFileModel getFileNameFun];
 //    [cachesFileManager removeItemAtPath:fileName type:DownLoadFileType error:nil];
     
+   
     [self DownloadFileChangeingOneFileFun];
     
     if(_isSuspendType){
         return;
     }
-    
-    [_downLoadFileModelDataArr removeObject:_curDownloadFileModel];
-    NSMutableArray*doneArr = _databaseArr[1];
-    [doneArr addObject:_curDownloadFileModel];
-    
     [self beginDownloadFileFun];
 }
 
 - (void)DownloadFileChangeingOneFileFun
 {
     if(_curDownloadFileModel.curDownloadStateType == downloadStateDone){
-    
+        [_downLoadFileModelDataArr removeObject:_curDownloadFileModel];
+        [self handleDatabaseArrAddObjectInDone:_curDownloadFileModel];
     }
     else if(_curDownloadFileModel.curDownloadStateType == uploadStateFail){
         [self handleDatabaseArrDeleteObjectInDownloading:_curDownloadFileModel];