|
@@ -255,14 +255,16 @@ static boxDownloadFileManager * cur_boxDownloadFileShareInstance = nil;
|
|
|
for (ShareFileDataModel*dataModel in ingArr) {
|
|
|
//HLog(@"22222222 %@\n%@",urlString,dataModel.fileUrl);
|
|
|
if([urlString isEqualToString:dataModel.fileUrl]){
|
|
|
- dataModel.downloadBoxStateType = downloadBoxStateDownloadloading;
|
|
|
- dataModel.totalSize = model.totalSize;
|
|
|
- dataModel.currentSize = model.currentSize;
|
|
|
-
|
|
|
- //更新数据库
|
|
|
- [dataModel bg_saveOrUpdateAsync:^(BOOL isSuccess) {
|
|
|
-
|
|
|
- }];
|
|
|
+ if(dataModel.downloadBoxStateType != downloadBoxStateDone){
|
|
|
+ dataModel.downloadBoxStateType = downloadBoxStateDownloadloading;
|
|
|
+ dataModel.totalSize = model.totalSize;
|
|
|
+ dataModel.currentSize = model.currentSize;
|
|
|
+
|
|
|
+ //更新数据库
|
|
|
+ [dataModel bg_saveOrUpdateAsync:^(BOOL isSuccess) {
|
|
|
+
|
|
|
+ }];
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
}
|