|
@@ -22,6 +22,7 @@
|
|
|
#import "videoPlayByAVPlayerViewController.h"
|
|
|
#import "audioPlayerViewController.h"
|
|
|
#import "imageDetailsScrollViewController.h"
|
|
|
+#import "DocumentPickerManager.h"
|
|
|
|
|
|
@interface previewFileAndFolderSecondViewController ()<UITableViewDelegate,UITableViewDataSource,DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
|
|
|
{
|
|
@@ -684,14 +685,22 @@
|
|
|
#pragma mark 调整文件上传
|
|
|
- (void)gotoUploadFileFunWith:(NSInteger)tag
|
|
|
{
|
|
|
- uploadImageOrVideoViewController *vc = [uploadImageOrVideoViewController new];
|
|
|
- if(tag ==10){
|
|
|
- vc.isPhotoType = YES;
|
|
|
+ if(tag == 10 || tag == 11){
|
|
|
+ uploadImageOrVideoViewController *vc = [uploadImageOrVideoViewController new];
|
|
|
+ if(tag ==10){
|
|
|
+ vc.isPhotoType = YES;
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ vc.isPhotoType = NO;
|
|
|
+ }
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
|
else{
|
|
|
- vc.isPhotoType = NO;
|
|
|
+ KWeakSelf
|
|
|
+ [[DocumentPickerManager shareManager] openDocumentPickerSuccess:^(NSArray * _Nonnull urls) {
|
|
|
+ [weakSelf gotoUploadFileRecordByFileAppWithUrls:urls];
|
|
|
+ }];
|
|
|
}
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
|
|
|
|
#pragma mark 文件下载
|
|
@@ -826,4 +835,16 @@
|
|
|
|
|
|
[self getFileListFun];
|
|
|
}
|
|
|
+
|
|
|
+#pragma mark 文件上传跳转上传记录
|
|
|
+- (void)gotoUploadFileRecordByFileAppWithUrls:(NSArray*)urls
|
|
|
+{
|
|
|
+ uploadFileRecordViewController *vc = [uploadFileRecordViewController new];
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ vc.isUploadingType = YES;
|
|
|
+ [vc gotoUploadFileByFileApp:urls];
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
@end
|