|
|
@@ -8,7 +8,8 @@
|
|
|
#import "fileTransfeSetViewController.h"
|
|
|
#import "fileSetTableViewCell.h"
|
|
|
#import "fileTransferPathCheckViewController.h"
|
|
|
-#import "uploadFileManager.h"
|
|
|
+//#import "uploadFileManager.h"
|
|
|
+#import "nasUploadFileManager.h"
|
|
|
//#import "backupsFileManager.h"
|
|
|
#import "nasBackupsManager.h"
|
|
|
|
|
|
@@ -379,64 +380,66 @@
|
|
|
|
|
|
-(void)gotoSetUploadPathFun
|
|
|
{
|
|
|
- uploadFileDataModel* model = [uploadFileManager shareInstance].curUploadFileDataModel;
|
|
|
+ [self gotofileTransferPathCheckVCFunWithType:1];
|
|
|
|
|
|
- if(!model){
|
|
|
- [[uploadFileManager shareInstance] getDataInDatabaseFun:YES complete:^(NSMutableArray * _Nonnull Arr) {
|
|
|
- mainBlock(^{
|
|
|
- if(Arr && Arr.count== 3){
|
|
|
- NSArray *uploadingArr = Arr.firstObject;
|
|
|
- if(uploadingArr.count == 0){
|
|
|
- [self gotofileTransferPathCheckVCFunWithType:1];
|
|
|
- }
|
|
|
- else{
|
|
|
- [[iToast makeText:NSLocalizedString(@"File_upload_set_default_path_tip",nil)] show];
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- }];
|
|
|
- }
|
|
|
- else if(model.curUploadStateType == uploadStateUploading
|
|
|
- ||model.curUploadStateType == uploadStateSuspend
|
|
|
- ){
|
|
|
-
|
|
|
- //判断尺寸路径是否存在
|
|
|
-
|
|
|
- NSString * uploadDefaultPath = [HWDataManager getStringWithKey:stringKeyAddSn(Const_photo_upload_default_path)];
|
|
|
-
|
|
|
- BOOL isExtraFileType = NO;
|
|
|
- BOOL isExtraPathFind = NO;
|
|
|
- if(uploadDefaultPath){
|
|
|
- if(![uploadDefaultPath containsString:@"sdcard/"]){
|
|
|
- isExtraFileType = YES;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- if(uploadDefaultPath && ksharedAppDelegate.cloudPhoneExtraFileListMod){
|
|
|
- NSArray*arr = ksharedAppDelegate.cloudPhoneExtraFileListMod.data;
|
|
|
-
|
|
|
- for (cloudPhoneExtraFileModel*model in arr) {
|
|
|
- if([uploadDefaultPath containsString:model.extraPath]){
|
|
|
- isExtraPathFind = YES;
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- if(isExtraFileType && !isExtraPathFind){
|
|
|
- [self gotofileTransferPathCheckVCFunWithType:1];
|
|
|
- }
|
|
|
- else{
|
|
|
- [[iToast makeText:NSLocalizedString(@"File_upload_set_default_path_tip",nil)] show];
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- else{
|
|
|
- [self gotofileTransferPathCheckVCFunWithType:1];
|
|
|
- }
|
|
|
+// uploadFileDataModel* model = [uploadFileManager shareInstance].curUploadFileDataModel;
|
|
|
+//
|
|
|
+// if(!model){
|
|
|
+// [[uploadFileManager shareInstance] getDataInDatabaseFun:YES complete:^(NSMutableArray * _Nonnull Arr) {
|
|
|
+// mainBlock(^{
|
|
|
+// if(Arr && Arr.count== 3){
|
|
|
+// NSArray *uploadingArr = Arr.firstObject;
|
|
|
+// if(uploadingArr.count == 0){
|
|
|
+// [self gotofileTransferPathCheckVCFunWithType:1];
|
|
|
+// }
|
|
|
+// else{
|
|
|
+// [[iToast makeText:NSLocalizedString(@"File_upload_set_default_path_tip",nil)] show];
|
|
|
+// }
|
|
|
+// }
|
|
|
+// });
|
|
|
+//
|
|
|
+// }];
|
|
|
+// }
|
|
|
+// else if(model.curUploadStateType == uploadStateUploading
|
|
|
+// ||model.curUploadStateType == uploadStateSuspend
|
|
|
+// ){
|
|
|
+//
|
|
|
+// //判断尺寸路径是否存在
|
|
|
+//
|
|
|
+// NSString * uploadDefaultPath = [HWDataManager getStringWithKey:stringKeyAddSn(Const_photo_upload_default_path)];
|
|
|
+//
|
|
|
+// BOOL isExtraFileType = NO;
|
|
|
+// BOOL isExtraPathFind = NO;
|
|
|
+// if(uploadDefaultPath){
|
|
|
+// if(![uploadDefaultPath containsString:@"sdcard/"]){
|
|
|
+// isExtraFileType = YES;
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// if(uploadDefaultPath && ksharedAppDelegate.cloudPhoneExtraFileListMod){
|
|
|
+// NSArray*arr = ksharedAppDelegate.cloudPhoneExtraFileListMod.data;
|
|
|
+//
|
|
|
+// for (cloudPhoneExtraFileModel*model in arr) {
|
|
|
+// if([uploadDefaultPath containsString:model.extraPath]){
|
|
|
+// isExtraPathFind = YES;
|
|
|
+// break;
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+//
|
|
|
+// }
|
|
|
+//
|
|
|
+// if(isExtraFileType && !isExtraPathFind){
|
|
|
+// [self gotofileTransferPathCheckVCFunWithType:1];
|
|
|
+// }
|
|
|
+// else{
|
|
|
+// [[iToast makeText:NSLocalizedString(@"File_upload_set_default_path_tip",nil)] show];
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+// else{
|
|
|
+// [self gotofileTransferPathCheckVCFunWithType:1];
|
|
|
+// }
|
|
|
|
|
|
}
|
|
|
|