@@ -599,6 +599,14 @@
#pragma mark 读取数据库数据
- (void)getDownloadDataInDatabaseFun:(BOOL)isRegetType
{
+ if(isRegetType){
+ //查询是否为nas下载中
+ BOOL isDownLoadIngType = [nasDownloadManager shareManager].isDownLoadIngType;
+ //判断是否要重新拿数据
+ isRegetType = !isDownLoadIngType;
+ }
+
KWeakSelf
[[nasDownloadFileManager shareInstance] getDataInDatabaseFun:isRegetType complete:^(NSMutableArray * _Nonnull Arr) {
@@ -581,6 +581,10 @@ totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend {
- (BOOL)isDownLoadIngType
+ if(self.downloadWaitingUrlArr.count >= 1){
+ return YES;
if(self.downloadingOperationArr.count >= 1){
return YES;
}