|
|
@@ -17,6 +17,8 @@
|
|
|
|
|
|
UIButton *canclButton;
|
|
|
UIButton *okButton;
|
|
|
+
|
|
|
+ BOOL isCouldPhonePathType;//路径是否为云机
|
|
|
}
|
|
|
|
|
|
@property (nonatomic, strong) UITableView *tableView;
|
|
|
@@ -304,6 +306,13 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if(row == 0){
|
|
|
+ isCouldPhonePathType = YES;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ isCouldPhonePathType = NO;
|
|
|
+ }
|
|
|
+
|
|
|
[self.tableView reloadData];
|
|
|
}
|
|
|
|
|
|
@@ -404,6 +413,7 @@
|
|
|
cloudPhoneExtraFileModel *defModel = arr.firstObject;
|
|
|
defModel.isCheckType = YES;
|
|
|
_defaultSaveDiskStr = defModel.extraPath;
|
|
|
+ isCouldPhonePathType = YES;
|
|
|
|
|
|
NSInteger tableRowHeight = 70;
|
|
|
NSInteger allRow = arr.count;
|
|
|
@@ -463,6 +473,13 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ if(isCouldPhonePathType
|
|
|
+ && ([folderName isEqualToString:@"Download"]
|
|
|
+ ||[folderName isEqualToString:@"download"])){
|
|
|
+ [[iToast makeText:NSLocalizedString(@"File_creat_def_path_error_tip",nil)] show];
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
[self deleteFromSuperview];
|
|
|
|
|
|
if(_didClickOkBut)
|