|
@@ -8,6 +8,7 @@
|
|
|
#import "fileTransfeSetViewController.h"
|
|
|
#import "fileSetTableViewCell.h"
|
|
|
#import "fileTransferPathCheckViewController.h"
|
|
|
+#import "uploadFileManager.h"
|
|
|
|
|
|
@interface fileTransfeSetViewController ()<UITableViewDelegate,UITableViewDataSource>
|
|
|
@property (nonatomic, strong) UITableView *tableView;
|
|
@@ -166,6 +167,38 @@
|
|
|
#pragma mark 尾部事件
|
|
|
- (void)didClickTailViewFun
|
|
|
{
|
|
|
+ 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 gotofileTransferPathCheckVCFun];
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ [[iToast makeText:NSLocalizedString(@"File_upload_set_default_path_tip",nil)] show];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ }];
|
|
|
+ }
|
|
|
+ else if(model.curUploadStateType == uploadStateUploading
|
|
|
+ ||model.curUploadStateType == uploadStateSuspend
|
|
|
+ ){
|
|
|
+
|
|
|
+ [[iToast makeText:NSLocalizedString(@"File_upload_set_default_path_tip",nil)] show];
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ [self gotofileTransferPathCheckVCFun];
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+- (void)gotofileTransferPathCheckVCFun
|
|
|
+{
|
|
|
fileTransferPathCheckViewController *vc = [fileTransferPathCheckViewController new];
|
|
|
vc.curType = 1;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|