|
@@ -255,6 +255,7 @@
|
|
|
if (error) {
|
|
|
// 读取出错
|
|
|
if(self.nasFullPath){
|
|
|
+ self.nasFullPath = nil;
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(20 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
[self checkSaveNasFileAgainFun];
|
|
|
});
|
|
@@ -269,6 +270,7 @@
|
|
|
//nas下载流程
|
|
|
[[NSFileManager defaultManager] removeItemAtPath:self.nasFullPath error:nil];
|
|
|
[[boxDownloadFileManager shareInstance] deleteDownloadDonePlistInfoBy:self.nasFullPath];
|
|
|
+ self.nasFullPath = nil;
|
|
|
[self checkSaveNasFileAgainFun];
|
|
|
}
|
|
|
|
|
@@ -278,6 +280,7 @@
|
|
|
} else {
|
|
|
// 授权失败
|
|
|
if(self.nasFullPath){
|
|
|
+ self.nasFullPath = nil;
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(20 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
[self checkSaveNasFileAgainFun];
|
|
|
});
|
|
@@ -288,7 +291,6 @@
|
|
|
#pragma mark 再次读取下载完成数据做保存操作
|
|
|
- (void)checkSaveNasFileAgainFun
|
|
|
{
|
|
|
- self.nasFullPath = nil;
|
|
|
[[boxDownloadFileManager shareInstance] checkDownloadDonePlistInfoFun];
|
|
|
}
|
|
|
@end
|