|
|
@@ -248,7 +248,7 @@ static boxDownloadFileManager * cur_boxDownloadFileShareInstance = nil;
|
|
|
for (ShareFileDataModel *dataModel in delArr) {
|
|
|
if(delModel.bg_id.integerValue == dataModel.bg_id.integerValue){
|
|
|
[delArr removeObject:dataModel];
|
|
|
- break;;
|
|
|
+ break;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -350,7 +350,7 @@ static boxDownloadFileManager * cur_boxDownloadFileShareInstance = nil;
|
|
|
[self handldDownloadFailDataBy:item];
|
|
|
}
|
|
|
|
|
|
- dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:nasDownloadTaskFinishedNotification object:item];
|
|
|
});
|
|
|
}
|
|
|
@@ -368,8 +368,7 @@ static boxDownloadFileManager * cur_boxDownloadFileShareInstance = nil;
|
|
|
for (ShareFileDataModel*dataModel in ingArr) {
|
|
|
HLog(@"22222222 %@\n%@",urlString,dataModel.fileUrl);
|
|
|
if([urlString isEqualToString:dataModel.fileUrl]){
|
|
|
- [self handleDatabaseArrByDelete:dataModel];
|
|
|
-
|
|
|
+
|
|
|
dataModel.downloadBoxStateType = downloadBoxStateDone;
|
|
|
|
|
|
NSMutableArray *doneArr = _databaseArr[1];
|
|
|
@@ -379,6 +378,9 @@ static boxDownloadFileManager * cur_boxDownloadFileShareInstance = nil;
|
|
|
[dataModel bg_saveOrUpdateAsync:^(BOOL isSuccess) {
|
|
|
|
|
|
}];
|
|
|
+
|
|
|
+ [self deteleModel:dataModel inArr:ingArr];
|
|
|
+
|
|
|
break;
|
|
|
}
|
|
|
}
|