|
@@ -106,6 +106,13 @@
|
|
|
[self getAllDataFun];
|
|
|
}
|
|
|
|
|
|
+- (void)viewWillDisappear:(BOOL)animated
|
|
|
+{
|
|
|
+ [super viewWillDisappear:animated];
|
|
|
+
|
|
|
+ [SVProgressHUD dismiss];
|
|
|
+}
|
|
|
+
|
|
|
#pragma mark 获取数据
|
|
|
- (void)getAllDataFun
|
|
|
{
|
|
@@ -529,8 +536,13 @@
|
|
|
- (void)getUploadDataInDatabaseFun
|
|
|
{
|
|
|
|
|
|
+ //查询是否为nas上传中
|
|
|
+ BOOL isUploadingType = [nasMixUploadManager shareManager].isUploadIngType;
|
|
|
+ //判断是否要重新拿数据
|
|
|
+ BOOL isNeedRegetDataType = !isUploadingType;
|
|
|
+
|
|
|
KWeakSelf
|
|
|
- [[nasUploadFileManager shareInstance] getDataInDatabaseFun:YES complete:^(NSMutableArray * _Nonnull Arr) {
|
|
|
+ [[nasUploadFileManager shareInstance] getDataInDatabaseFun:isNeedRegetDataType complete:^(NSMutableArray * _Nonnull Arr) {
|
|
|
//[weakSelf setRecordBodyDataFunBy:Arr];
|
|
|
|
|
|
weakSelf.didGetUploadDataType = YES;
|
|
@@ -543,7 +555,7 @@
|
|
|
|
|
|
NSMutableArray *curLoadIngArr = Arr[0];
|
|
|
//不是上传视频和进来的 所以上传状态(上传中和等待)改为重新上传
|
|
|
- if(!weakSelf.isUploadingType){
|
|
|
+ if(!weakSelf.isUploadingType && isNeedRegetDataType){
|
|
|
//改为暂停
|
|
|
// for (uploadFileDataModel * curModel in curLoadIngArr) {
|
|
|
// curModel.curUploadStateType = uploadStateSuspend;
|