|
@@ -912,12 +912,30 @@
|
|
|
[[netWorkManager shareInstance] cloudPhoneGETCallBackCode:@"getFileListByDay" Parameters:paraDict success:^(id _Nonnull responseObject) {
|
|
|
[weakSelf removeNewIndicatorHaveStr];
|
|
|
weakSelf.curNASFilePicModel = [[NASFilePicModel alloc] initWithDictionary:responseObject error:nil];
|
|
|
+ [weakSelf filterDataFun];
|
|
|
[weakSelf.dataCollectionView reloadData];
|
|
|
} failure:^(NSError * _Nonnull error) {
|
|
|
[weakSelf removeNewIndicatorHaveStr];
|
|
|
}];
|
|
|
}
|
|
|
|
|
|
+#pragma mark 20230528需求:图片/视频模块,限制50KB以下文件展示;
|
|
|
+- (void)filterDataFun
|
|
|
+{
|
|
|
+ if(!_curNASFilePicModel) return;
|
|
|
+
|
|
|
+ for (NASFilePicTimeArrModel *timeArrModel in _curNASFilePicModel.data.fileList) {
|
|
|
+ NSMutableArray *afterFilterArr = [NSMutableArray new];
|
|
|
+ for (NASFilePicDataArrModel * dataModel in timeArrModel.list) {
|
|
|
+ if (dataModel.size >= 50*1024*1024) {
|
|
|
+ [afterFilterArr addObject:dataModel];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ timeArrModel.list = (NSArray<NASFilePicDataArrModel>*)afterFilterArr;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
#pragma mark 点击图片详情
|
|
|
- (void)didClickPicDetailsWithSection:(NSInteger)section withRow:(NSInteger)row{
|
|
|
|