Przeglądaj źródła

1.修改 备份 下载 上传 -》下载中界面不刷新

huangxiaodong 1 rok temu
rodzic
commit
65e9f1eabd

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

@@ -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);
+        }
+        
     }
 }