|
@@ -286,8 +286,29 @@ static downloadManager * cur_downloadManager = nil;
|
|
|
- (void)handleDatabaseArrDeleteObjectInDownloading:(couldPhoneFileModel*)model
|
|
|
{
|
|
|
if(_databaseArr && _databaseArr.count == 3 ){
|
|
|
+
|
|
|
NSMutableArray *ingArr = _databaseArr[0];
|
|
|
+ NSInteger count = ingArr.count;
|
|
|
[ingArr removeObject:model];
|
|
|
+
|
|
|
+ NSInteger atferDelCount = ingArr.count;
|
|
|
+
|
|
|
+ if(count == atferDelCount){
|
|
|
+ for (couldPhoneFileModel*preModel in ingArr) {
|
|
|
+ if(preModel.bg_id.integerValue == model.bg_id.integerValue){
|
|
|
+ [ingArr removeObject:preModel];
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ NSInteger atferDelCount2 = ingArr.count;
|
|
|
+
|
|
|
+ if(count == atferDelCount2){
|
|
|
+
|
|
|
+ // HLog(@"\n\n\nerror:下载中的任务没有删除掉database bgid:%@\n\n\n\n",model.bg_id);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|