Selaa lähdekoodia

1.上传列表有上传重复的数据刷新异常问题

huangxiaodong 1 vuosi sitten
vanhempi
commit
42c1460ceb

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

@@ -879,7 +879,11 @@ static uploadFileManager * cur_uploadFileShareInstance = nil;
         }
     }
         
-    [[NSNotificationCenter defaultCenter] postNotificationName:uploadFileRefreshNotification object:nil];
+    uploadFileDataModel *RefreshUploadFileDataMod = nil;
+    if(delArr.count >=  1){
+        RefreshUploadFileDataMod = delArr.firstObject;
+    }
+    [[NSNotificationCenter defaultCenter] postNotificationName:uploadFileRefreshNotification object:RefreshUploadFileDataMod];
     
     complete(YES);
     

+ 1 - 1
创维盒子/双子星云手机/CloudPlayer/PlayerViewController+upLoadFile.m

@@ -71,7 +71,7 @@
                             if([fileLengthNum integerValue] == self.curUploadFileDataMod.totalBytes && self.curUploadFileDataMod.totalBytes != 0){
                                 self.taskUid = nil;
                                 
-                                self.curUploadFileDataMod.curUploadStateType = uploadStateDone;
+                                //self.curUploadFileDataMod.curUploadStateType = uploadStateDone;
                                 
                                 NSMutableArray *delArr = [NSMutableArray new];
                                 [delArr addObject:self.curUploadFileDataMod];