|
@@ -816,6 +816,13 @@
|
|
[self checkFileTransferTask];
|
|
[self checkFileTransferTask];
|
|
|
|
|
|
if(!_curNASFileAudioMod){
|
|
if(!_curNASFileAudioMod){
|
|
|
|
+ //数据缓存
|
|
|
|
+ NSString *key = stringKeyAddSn(@"getFileList_audio");
|
|
|
|
+ NSDictionary *DataDict = [HWDataManager getObjectWithKey:key];
|
|
|
|
+ if(DataDict){
|
|
|
|
+ _curNASFileAudioMod = [[NASFileAudioModel alloc] initWithDictionary:DataDict error:nil];
|
|
|
|
+ }
|
|
|
|
+
|
|
[self getFileListFun:NO];
|
|
[self getFileListFun:NO];
|
|
[self queryShareSwitchFunFun];
|
|
[self queryShareSwitchFunFun];
|
|
}
|
|
}
|
|
@@ -959,6 +966,19 @@
|
|
|
|
|
|
if(weakSelf.curNASFileAudioMod && weakSelf.curNASFileAudioMod.status == 0){
|
|
if(weakSelf.curNASFileAudioMod && weakSelf.curNASFileAudioMod.status == 0){
|
|
[weakSelf.tableView reloadData];
|
|
[weakSelf.tableView reloadData];
|
|
|
|
+
|
|
|
|
+ NSMutableDictionary *IdDataDict = [[NSMutableDictionary alloc] initWithDictionary:responseObject];
|
|
|
|
+
|
|
|
|
+ for (NSString *key in responseObject) {
|
|
|
|
+ id object = IdDataDict[key];
|
|
|
|
+ if(!object || [object isKindOfClass:[NSNull class]]){
|
|
|
|
+ [IdDataDict removeObjectForKey:key];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ //数据缓存
|
|
|
|
+ NSString *key = stringKeyAddSn(@"getFileList_audio");
|
|
|
|
+ [HWDataManager setObjectWithKey:key value:IdDataDict];
|
|
}
|
|
}
|
|
|
|
|
|
} failure:^(NSError * _Nonnull error) {
|
|
} failure:^(NSError * _Nonnull error) {
|