|
@@ -422,6 +422,7 @@
|
|
|
mainBlock(^{
|
|
|
weakSelf.didGetUploadDataType = YES;
|
|
|
[weakSelf handleRemoveIndicator];
|
|
|
+ [weakSelf showUploadOrDownReadTipFun:YES];
|
|
|
});
|
|
|
|
|
|
[self realGotoUploadFile:indexPathsForSelectedItems];
|
|
@@ -862,6 +863,7 @@
|
|
|
-(void)gotoDownloadFile:(NSMutableArray*)selectedItems
|
|
|
{
|
|
|
KWeakSelf
|
|
|
+ [weakSelf showUploadOrDownReadTipFun:YES];
|
|
|
[[downloadManager shareInstance] handleCouldPhoneFileModelToDownloadFileDataFunBy:selectedItems complete:^(NSMutableArray * _Nonnull Arr) {
|
|
|
|
|
|
weakSelf.didGetDownloadDataType = YES;
|
|
@@ -1011,4 +1013,41 @@
|
|
|
}
|
|
|
|
|
|
|
|
|
+- (void)showUploadOrDownReadTipFun:(BOOL)isUploadType
|
|
|
+{
|
|
|
+ BOOL didReadUploadTipType = [HWDataManager getBoolWithKey:Const_file_upLoad_need_read];
|
|
|
+ BOOL didReadDownloadTipType = [HWDataManager getBoolWithKey:Const_file_downLoad_need_read];
|
|
|
+
|
|
|
+ if(didReadUploadTipType && didReadDownloadTipType){//阅读过
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ //KWeakSelf
|
|
|
+ /*弹窗提示恢复出厂*/
|
|
|
+ ComontAlretViewController *nextVC = [[ComontAlretViewController alloc] initWithTiTle:nil
|
|
|
+ msg:NSLocalizedString(@"backups_need_read_msg",nil)
|
|
|
+ imageStr:nil
|
|
|
+ cancelTitle:NSLocalizedString(@"guide_set_pwd_guide_know",nil)
|
|
|
+ okTitle:nil
|
|
|
+ isOkBtnHighlight:NO
|
|
|
+ didClickOk:^{
|
|
|
+
|
|
|
+ } didClickCancel:^{
|
|
|
+ if(isUploadType){
|
|
|
+ [HWDataManager setBoolWithKey:Const_file_upLoad_need_read value:YES];
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ [HWDataManager setBoolWithKey:Const_file_downLoad_need_read value:YES];
|
|
|
+ }
|
|
|
+ }];
|
|
|
+
|
|
|
+ nextVC.modalPresentationStyle = UIModalPresentationCustom;
|
|
|
+
|
|
|
+ [self presentViewController:nextVC animated:YES completion:^{
|
|
|
+ nextVC.view.superview.backgroundColor = [UIColor clearColor];
|
|
|
+ }];
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
@end
|