|
@@ -21,6 +21,7 @@
|
|
|
#import "previewToUploadFileView.h"
|
|
|
#import "netWorkManager.h"
|
|
|
#import "NASFileAndFolderModel.h"
|
|
|
+#import "queryShareModel.h"
|
|
|
|
|
|
@interface previewFileAndFolderViewController ()<UITableViewDelegate,UITableViewDataSource,DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>
|
|
|
{
|
|
@@ -31,6 +32,8 @@
|
|
|
|
|
|
BOOL hadUploadTaskType;
|
|
|
BOOL hadDownloadTaskType;
|
|
|
+
|
|
|
+ BOOL canShareType;
|
|
|
}
|
|
|
@property (nonatomic, strong) UITableView *tableView;
|
|
|
|
|
@@ -371,6 +374,7 @@
|
|
|
{
|
|
|
previewFileAndFolderSecondViewController *vc = [previewFileAndFolderSecondViewController new];
|
|
|
vc.curFolderDataModel = dataModel;
|
|
|
+ vc.canShareType = canShareType;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
|
}
|
|
@@ -688,6 +692,7 @@
|
|
|
|
|
|
if(!_curNASFileAudioMod){
|
|
|
[self getFileListFun];
|
|
|
+ [self queryShareSwitchFunFun];
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -922,5 +927,25 @@
|
|
|
|
|
|
[self getFileListFun];
|
|
|
}
|
|
|
+
|
|
|
+#pragma mark 获取分享开关
|
|
|
+-(void)queryShareSwitchFunFun
|
|
|
+{
|
|
|
+ NSMutableDictionary *paraDict = [NSMutableDictionary new];
|
|
|
+
|
|
|
+ [paraDict setValue:@6 forKey:@"type"];
|
|
|
+
|
|
|
+ KWeakSelf
|
|
|
+ [[netWorkManager shareInstance] CommonGetWithCallBackCode:queryShareSwitchFun Parameters:paraDict success:^(id _Nonnull responseObject){
|
|
|
+ queryShareModel *queryShareMod = [[queryShareModel alloc] initWithDictionary:responseObject error:nil];
|
|
|
+ if(queryShareMod){
|
|
|
+ self->canShareType = queryShareMod.data.configValue;
|
|
|
+ [weakSelf.curEditTypeBottomView setCanShaewFunBy:queryShareMod.data.configValue];
|
|
|
+ }
|
|
|
+
|
|
|
+ } failure:^(NSError * _Nonnull error) {
|
|
|
+ }];
|
|
|
+}
|
|
|
+
|
|
|
@end
|
|
|
|