Browse Source

【IOS】相册备份暂停且已关闭,无法更改路径

huangxiaodong 1 year ago
parent
commit
305ae2ac49

+ 21 - 20
创维盒子/双子星云手机/Class/Set/uploadFile/fileTransfeSet/fileTransfeSetViewController.m

@@ -364,26 +364,27 @@
     photosBackupsTaskModel* model = [backupsFileManager shareInstance].curPhotosBackupsTaskMod;
     
     if(!model){
-        KWeakSelf
-        [photosBackupsTaskModel bg_findAsync:backups_photos_tableName limit:1 orderBy:nil desc:YES complete:^(NSArray * _Nullable array) {
-            mainBlock(^{
-                if(array && array.count > 0){
-                    photosBackupsTaskModel *preModel = array.lastObject;
-                    if(preModel.curBackupsState == backupsStateUploading
-                        ||preModel.curBackupsState == backupsStateSuspend
-                       ){
-                        [[iToast makeText:NSLocalizedString(@"File_backups_set_default_path_tip",nil)] show];
-                    }
-                    else{
-                        [self gotofileTransferPathCheckVCFunWithType:2];
-                    }
-                }
-                else{
-                    [self gotofileTransferPathCheckVCFunWithType:2];
-                }
-            });
-                
-        }];
+        [self gotofileTransferPathCheckVCFunWithType:2];
+//        KWeakSelf
+//        [photosBackupsTaskModel bg_findAsync:backups_photos_tableName limit:1 orderBy:nil desc:YES complete:^(NSArray * _Nullable array) {
+//            mainBlock(^{
+//                if(array && array.count > 0){
+//                    photosBackupsTaskModel *preModel = array.lastObject;
+//                    if(preModel.curBackupsState == backupsStateUploading
+//                        ||preModel.curBackupsState == backupsStateSuspend
+//                       ){
+//                        [[iToast makeText:NSLocalizedString(@"File_backups_set_default_path_tip",nil)] show];
+//                    }
+//                    else{
+//                        [self gotofileTransferPathCheckVCFunWithType:2];
+//                    }
+//                }
+//                else{
+//                    [self gotofileTransferPathCheckVCFunWithType:2];
+//                }
+//            });
+//                
+//        }];
          
     }
     else if(model.curBackupsState == backupsStateUploading