|
@@ -166,6 +166,22 @@
|
|
|
if(model && model.status == 0){
|
|
|
[weakSelf checkFileUploadStateFunAfterNetWith:model WithOperation:operation];
|
|
|
}
|
|
|
+ else if(model && model.status == 5){
|
|
|
+ //备份路径
|
|
|
+ NSString * backupsDefaultPath = [HWDataManager getStringWithKey:stringKeyAddSn(Const_photo_backups_default_path)];
|
|
|
+ NSArray * stringArr = [backupsDefaultPath componentsSeparatedByString:@"/"];
|
|
|
+ NSString *lastStr = stringArr.lastObject;
|
|
|
+ NSString *repStr = [[NSString alloc] initWithFormat:@"/%@",lastStr];
|
|
|
+ NSString *name = [backupsDefaultPath stringByReplacingOccurrencesOfString:repStr withString:@""];
|
|
|
+ name = [iTools changePathToShowPathBy:name];
|
|
|
+
|
|
|
+ NSString* showTip = [[NSString alloc] initWithFormat:@"【%@】%@",name,NSLocalizedString(@"disk_space_not_tip_for_95",nil)];
|
|
|
+ [[iToast makeText:showTip] show];
|
|
|
+ [weakSelf handleUploadFailOneFileBy:operation];
|
|
|
+
|
|
|
+ NSString* failTip = [[NSString alloc] initWithFormat:@"【%@】%@",name,NSLocalizedString(@"disk_space_not_tip_for_95_fail_tip",nil)];
|
|
|
+ [[nasBackupsManager shareInstance] changeBackupsFileStateToFailWith:failTip];
|
|
|
+ }
|
|
|
else{
|
|
|
[weakSelf handleUploadFailOneFileBy:operation];
|
|
|
//FileExistRet(-1);
|
|
@@ -488,7 +504,7 @@
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:nasBackupsTaskExeError object:operation.fileModel];
|
|
|
[_uploadingOperationArr removeObject:operation];
|
|
|
//[self beginUpload];
|
|
|
- [[nasBackupsManager shareInstance] changeBackupsFileStateToFailWith:@""];
|
|
|
+ //[[nasBackupsManager shareInstance] changeBackupsFileStateToFailWith:@""];
|
|
|
}
|
|
|
|
|
|
#pragma mark 根据 asset 获取到图片数据
|