@@ -101,7 +101,7 @@ - (void)configContent{
101101 self.title = [self titleStr ];
102102 [self setupNavigationItem ];
103103
104- NSURL *fileUrl = [self hasBeenDownload ];
104+ NSURL *fileUrl = [self diskFileUrl ];
105105 if (!fileUrl) {
106106 [self showDownloadView ];
107107 }else {
@@ -359,7 +359,7 @@ - (void)goToFileInfo{
359359
360360- (void )deleteCurFile {
361361 UIActionSheet *actionSheet;
362- NSURL *fileUrl = [_curFile hasBeenDownload ];
362+ NSURL *fileUrl = [_curFile diskFileUrl ];
363363 Coding_DownloadTask *cDownloadTask = [_curFile cDownloadTask ];
364364
365365 if (fileUrl) {
@@ -405,7 +405,7 @@ - (void)doDeleteCurFile:(ProjectFile *)file fromDisk:(BOOL)fromDisk{
405405 [Coding_FileManager cancelCDownloadTaskForKey: file.storage_key];
406406 }
407407 // 删除本地文件
408- NSURL *fileUrl = [file hasBeenDownload ];
408+ NSURL *fileUrl = [file diskFileUrl ];
409409 NSString *filePath = fileUrl.path ;
410410 NSFileManager *fm = [NSFileManager defaultManager ];
411411 if ([fm fileExistsAtPath: filePath]) {
@@ -509,12 +509,12 @@ - (void)easeToolBar:(EaseToolBar *)toolBar didClickedIndex:(NSInteger)index{
509509 }
510510}
511511#pragma mark Data Value
512- - (NSURL *)hasBeenDownload {
512+ - (NSURL *)diskFileUrl {
513513 NSURL *fileUrl;
514514 if (self.curVersion ) {
515- fileUrl = [self .curVersion hasBeenDownload ];
515+ fileUrl = [self .curVersion diskFileUrl ];
516516 }else {
517- fileUrl = [self .curFile hasBeenDownload ];
517+ fileUrl = [self .curFile diskFileUrl ];
518518 }
519519 return fileUrl;
520520}
0 commit comments