|
|
@@ -289,18 +289,18 @@
|
|
|
[self startUpload:paraDict operation:operation data:curData success:^(id _Nonnull responseObject) {
|
|
|
frpUploadModel *model = [[frpUploadModel alloc] initWithDictionary:responseObject error:nil];
|
|
|
if(model && model.position == operation.fileModel.totalBytes){
|
|
|
- HLog(@"%@上传完成 数据正常",operation.fileModel.filename)
|
|
|
+ HLog(@"%@备份完成 数据正常",operation.fileModel.filename)
|
|
|
[weakSelf handleUploadDoneOneFileBy:operation];
|
|
|
}
|
|
|
else if(model && model.position > operation.fileModel.totalBytes){
|
|
|
- HLog(@"%@上传完成 数据异常 -- position:%ld -- totalBytes:%ld",operation.fileModel.filename,model.position,operation.fileModel.totalBytes)
|
|
|
+ HLog(@"%@备份完成 数据异常 -- position:%ld -- totalBytes:%ld",operation.fileModel.filename,model.position,operation.fileModel.totalBytes)
|
|
|
[weakSelf handleUploadDoneOneFileBy:operation];
|
|
|
}
|
|
|
else{
|
|
|
- HLog(@"%@上传完成一片 %ld",operation.fileModel.filename,model.position)
|
|
|
+ HLog(@"%@备份完成一片 %ld",operation.fileModel.filename,model.position)
|
|
|
}
|
|
|
} faild:^(NSError * _Nonnull error) {
|
|
|
- HLog(@"%@上传失败",operation.fileModel.filename)
|
|
|
+ HLog(@"%@备份失败",operation.fileModel.filename)
|
|
|
[weakSelf handleUploadFailOneFileBy:operation];
|
|
|
}];
|
|
|
}
|
|
|
@@ -488,7 +488,7 @@
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:nasBackupsTaskExeError object:operation.fileModel];
|
|
|
[_uploadingOperationArr removeObject:operation];
|
|
|
//[self beginUpload];
|
|
|
- [[nasBackupsManager shareInstance] changeBackupsFileStateToFailWith:@"back fail"];
|
|
|
+ [[nasBackupsManager shareInstance] changeBackupsFileStateToFailWith:@""];
|
|
|
}
|
|
|
|
|
|
#pragma mark 根据 asset 获取到图片数据
|